UDP Socket
-
Is there a way to understand if a port is listened by a server process on winsock ? If you know how to do this can you post a code sample. Orcun Colak orcuncolak@yahoo.com
-
Is there a way to understand if a port is listened by a server process on winsock ? If you know how to do this can you post a code sample. Orcun Colak orcuncolak@yahoo.com
What do you actually mean?!?! You want a 'client' be able to test if a 'server/service' exist on a service-port over UDP? UDP is a connectionless protocol, so the only way for the 'client' is to check the connection is waiting for any response on your message. I write 'client' and 'server' between brackets, since client-server in UDP environment is not really a client-server architecture. With TCP/IP you split a socket when a connection is make (by listen -> accept), UDP doesn't do this, but you can use recvfrom to collect the others ip-address+port. EiSl