Winsock Port Listener
I've done a TCP por开发者_如何学编程t listener. it works when i connect to it locally using client with 127.1.1.0
and a port that listener is bound to accept connection. can you make it to listen to any IP that connects through that port and would it be possible to listen to a second client port that is accepting from server?
You need to specify INADDR_ANY to bind. You cannot bind the same socket to multiple ports, but you can certainly create multiple sockets, each listening to a different port.
精彩评论