Sockets which listen...
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm a bit of a beginner on Winsock programming. I've done some simple apps which connect to a server/client etc., on a given port, transfer data blah blah. However, I'm curious how programs work that listen on 'any port'. For instance, if I want to write a program that looks for 'a connection' and then can report to me on what port that connection is being attempted, how do I go about doing that? Since there are 65,535 tcp ports, how does one listen to all of them simultaneously? Or am I going about this the wrong way? Paul Oss