'JMeter: How do I connect a raw socket then send + receive a byte array?

I have a custom protocol based on TCP and need to load test it using a JMeter script in the Azure load testing tool.

1. Connect
Loop 
{
  2. Send 'Hello' + #0
  3. Listen for response
  4. Pause for 1 second
}
5. Loop to step 2, 30 times

How is can I do a raw connect to a socket and send a byte array?



Solution 1:[1]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T