linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* using the same port with two sockets
@ 2003-09-25  8:16 Fekete Gabor
  0 siblings, 0 replies; 5+ messages in thread
From: Fekete Gabor @ 2003-09-25  8:16 UTC (permalink / raw)
  To: linux-c-programming

hi

with SOCK_STREAM if the server accept()s a connection it creates
another sokcet that can be used to handle that connection.
I want to do the same but with SOCK_DGRAM.
So what I want is to recvfrom() a "connection" request and then
create another socket to handle that "connection", that is, the
server would go back to recvfrom() requests without worrying about
packets arriving from the previously "accepted" client which would
send those packets to the socket created especially for it.
Is it possible?

Does SOCK_STREAM create a new port too with the new socket? 

thanks



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-26 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.A41.4.20.0309251006170.140698-100000@delfin.unideb.hu >
2003-09-25 17:15 ` using the same port with two sockets Jeff Woods
2003-09-25 19:35   ` Fekete Gabor
2003-09-26  5:51     ` Patrik Jönsson
2003-09-26 15:28       ` Fekete Gabor
2003-09-25  8:16 Fekete Gabor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).