lab1
June 14th, 2004, 10:34 AM
Hello all,
I want to do something very simple with sockets. I have a TCP/IP server class in which I want to listen() for remote connections.. everytime something connects to the port that im listening on, I want it to basically call a handler?? and then I want to add that connection to a list.
whats the simple basic code used to listen for tcp/ip connections on a port? can I call a handler when something connects?
example code would be greatly appreciated!
Thanks!
I want to do something very simple with sockets. I have a TCP/IP server class in which I want to listen() for remote connections.. everytime something connects to the port that im listening on, I want it to basically call a handler?? and then I want to add that connection to a list.
whats the simple basic code used to listen for tcp/ip connections on a port? can I call a handler when something connects?
example code would be greatly appreciated!
Thanks!