.
Byte [] arrbyte=new byte [8].
Arrbyte [0]=0 xfe (byte);
.
OutputStream socketWriter=socket. GetOutputStream ();
SocketWriter. Write (arrbyte);
SocketWriter. Flush ();
The above operation is possible,
Not by netty operation
CTX. WriteAndFlush (arrbyte);
Beg to solve, thank you master
CodePudding user response:
Use netty bytebuf right the code posted some moreCodePudding user response:
CTX. WriteAndFlush (Unpooled. CopiedBuffer (arrbyte));CodePudding user response:
NIO non-blocking one-way communication with the TCP client and serverhttp://www.verejava.com/? Id=17508415963845
CodePudding user response: