Interface TCPClient
- All Known Implementing Classes:
AbstractTCPClient, BinaryTCPClientImpl, LengthPrefixedBinaryTCPClientImpl, TCPClientDecorator, TCPClientImpl
public interface TCPClient
Interface required by TCPSampler for TCPClient implementations.
-
Method Summary
Modifier and TypeMethodDescriptionGet the charset.byteGet the end-of-line/end-of-message byte.read(InputStream is) voidsetEolByte(int eolInt) Set the end-of-line/end-of-message byte.voidVersions of JMeter after 2.3.2 invoke this method when the thread starts.voidVersions of JMeter after 2.3.2 invoke this method when the thread ends.voidwrite(OutputStream os, InputStream is) voidwrite(OutputStream os, String s)
-
Method Details
-
setupTest
void setupTest()Versions of JMeter after 2.3.2 invoke this method when the thread starts. -
teardownTest
void teardownTest()Versions of JMeter after 2.3.2 invoke this method when the thread ends. -
write
- Parameters:
os- - OutputStream for socketis- - InputStream to be written to Socket- Throws:
IOException- when writing fails
-
write
- Parameters:
os- - OutputStream for sockets- - String to write- Throws:
IOException- when writing fails
-
read
- Parameters:
is- - InputStream for socket- Returns:
- String read from socket
- Throws:
ReadException- exception that can contain partial response (Response until error occured)
-
getEolByte
byte getEolByte()Get the end-of-line/end-of-message byte.- Returns:
- Returns the eolByte.
-
getCharset
-
setEolByte
void setEolByte(int eolInt) Set the end-of-line/end-of-message byte. If the value is out of range of a byte, then it is to be ignored.- Parameters:
eolInt- The value to set
-