difference between bound and connected socketchannelState in Netty

I am trying to understand the difference between ChannelStates provided by Netty viz. CONNECTED and BOUND.

netty url here

when does channelConnected() gets called and when channelBound() gets called


Binding precedes connecting. Binding is the step where an IP address and port are associated with the socket. It is typically only an explicit step for a listening socket. Connection takes place when a socket is either connected to a server or accepted from a client. In the latter case the bind and connect steps are usually combined, or rather the bind is done implicitly by the connect call.

链接地址: http://www.djcxy.com/p/64776.html

上一篇: 为REST端点和netty socket.io共享相同的端口?

下一篇: Netty中绑定和连接的socketchannelState之间的区别