linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Patrik Jönsson" <mailme-linux@illuvatar.nu>
To: 'Fekete Gabor' <feketga@delfin.unideb.hu>
Cc: 'linux-c-programming' <linux-c-programming@vger.kernel.org>
Subject: RE: using the same port with two sockets
Date: Fri, 26 Sep 2003 07:51:19 +0200	[thread overview]
Message-ID: <001d01c383f2$3571ca80$bac7f082@campus.luth.se> (raw)
In-Reply-To: <Pine.A41.4.20.0309252133350.71280-100000@delfin.unideb.hu>

One possible way should be to have a master process wich recieves the data,
looks the source IP:port pair up in a table and starts a new process if it
is not found, and otherwise uses some IPC (like pipes) mean to forward it to
the right process, the processes could then use another pipe to send replies
to the other host.



> -----Original Message-----
> From: linux-c-programming-owner@vger.kernel.org 
> [mailto:linux-c-programming-owner@vger.kernel.org] On Behalf 
> Of Fekete Gabor
> Sent: Thursday, September 25, 2003 9:36 PM
> To: unlisted-recipients:; no To-header on input
> Cc: linux-c-programming
> Subject: Re: using the same port with two sockets
> 
> 
> 
> 
> On Thu, 25 Sep 2003, Jeff Woods wrote:
> 
> > Unlike SOCK_STREAM (aka TCP sockets) SOCK_DGRAM (aka UDP 
> sockets) are
> > connectionless.  Every new UDP packet arrives at the single 
> listening 
> > socket which is bound to the UDP port addressed.  You can 
> not have two 
> > sockets listening on the same UDP port (IIUC).
> > 
> it's ok. i know it.
> i mean i would like to emulate the TCP connections with UDP.
> ok the truth is, i need it because i want to make a 
> client/server stuff with udp.
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-c-programming" in the body of a message to 
> majordomo@vger.kernel.org More majordomo info at  
http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2003-09-26  5:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2003-09-26 15:28       ` Fekete Gabor
2003-09-25  8:16 Fekete Gabor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001d01c383f2$3571ca80$bac7f082@campus.luth.se' \
    --to=mailme-linux@illuvatar.nu \
    --cc=feketga@delfin.unideb.hu \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).