好久没来这里,问大侠们一个问题,关于bind的用法
在msdn上这样描述bind函数的用法
The bind function is used on an unconnected socket before subsequent calls to the connect or listen functions. It is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to the socket function, it exists in a name space (address family), but it has no name assigned to it. Use bind to establish the local association of the socket by assigning a local name to an unnamed socket.
一般情况下,bind函数用于服务器端的比较多,绑定到套接字上实现监听,这没有问题。我的问题是:如果客户端有N个IP地址,创建N个套接字,并将这N个套接字分别与这些IP地址绑定,即实现了N个客户端,那么所有的基于该套接字上操作是否跟普通的创建单个客户端一样?对该套接字实现阻塞/非阻塞编程?