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