blocking sockets question
Hi all,i am developing an application that will listens on two ports e.g port 25 and 143 how to make my application change its behaviour according to the connection that will come on which port? "i think this is called blocking sockets right" can any body help me please thanks alot
hi,
i mean lets say the first line of code is making socketserver to listen on port 25
and the second line is making another socketserver to listen on port 143, but if no connection cam to the first socketserver "25" the execution will never reach the second line "socketserver listening on port 143" this is called blocking but i want this part to be non blocking sockets can you help me any body?
thanks again :0
You will certainly have to have two accepting threads, one per ServerSocket, and they will have to spawn a new thread per accepted socket too.
ejpa at 2007-7-13 22:26:19 >
