Re: Server with UDP and TCP
- From: "Nick Keighley" <nick_keighley_nospam@xxxxxxxxxxx>
- Date: 8 Dec 2006 02:31:04 -0800
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
.
- References:
- Server with UDP and TCP
- From: Pedro Pinto
- Re: Server with UDP and TCP
- From: ***
- Server with UDP and TCP
- Prev by Date: Re: <OT> Re: I have a doubt
- Next by Date: Re: Print without using any inbuilt function?
- Previous by thread: Re: Server with UDP and TCP
- Next by thread: Re: Server with UDP and TCP
- Index(es):