Skip to content

Commit 5c1a071

Browse files
Update TRexTransport.java
socket with old type is depricated, update to socketType
1 parent 95a3cea commit 5c1a071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cisco/trex/stateless/TRexTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class TRexTransport {
3535
public TRexTransport(String host, String port, int timeout, IDataCompressor dataCompressor) {
3636
this.host = host;
3737
this.port = port;
38-
this.zmqSocket = zmqCtx.socket(ZMQ.REQ);
38+
this.zmqSocket = zmqCtx.socket(SocketType.REQ);
3939
int actualTimeout = timeout <= 0 ? DEFAULT_TIMEOUT : timeout;
4040
zmqSocket.setReceiveTimeOut(actualTimeout);
4141
zmqSocket.setSendTimeOut(actualTimeout);

0 commit comments

Comments
 (0)