Re: Server with UDP and TCP



don't top post. Post re-ordered

*** wrote:
Pedro Pinto wrote:

I have a doubt that maybe someone can help me.

I have to create a server program that runs sincronized with other
servers using TCP. The issue here is, the clients contacting the
servers use UDP. That means that the servers have to listen to UDP and
TCP sockets and the same time. TCP for requests from other servers, UDP
for requests from clients. How can this be done? When i run the TCP
accept comand the system blocks and doesn't listen to the UDP port. The
same issue occurs if i use the UDP recvfrom comand. How can i have both
connections open at the same time?

you can have tow threads or processes.

no you don't. This illustrates why asking on the correct news group is
a good
idea.


--
Nick Keighley

.