You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the impl of this method, it walks through the buffers calling write(buffer) for each one. If the call to write writes less bytes than are remaining in the buffer it throws an exception, however for a non-blocking socket/channel its perfectly valid for write to write less than the entire buffer. (the write(ByteBuffer) seems to be doing the right thing, and just writing what it can).
The text was updated successfully, but these errors were encountered:
it default to block if you use NetSocketUDT, but you can use SocketChannelUDT instead if you want non-blocking program
by away , you can use netty 4 instead , netty 4 integrated barchart-udt as optional implementation
/** uses {@link TypeUDT#STREAM} socket in blocking mode */
public NetSocketUDT() throws ExceptionUDT {
this(new SocketUDT(TypeUDT.STREAM));
this.socketUDT.setBlocking(true);
}
In the impl of this method, it walks through the buffers calling write(buffer) for each one. If the call to write writes less bytes than are remaining in the buffer it throws an exception, however for a non-blocking socket/channel its perfectly valid for write to write less than the entire buffer. (the write(ByteBuffer) seems to be doing the right thing, and just writing what it can).
The text was updated successfully, but these errors were encountered: