Re: 1 port, listening and connecting, how to
From: Cameron Kerr (cameron.kerr_at_paradise.net.nz)
Date: 02/10/04
- Next message: Cameron Kerr: "Re: Linux-wlan compiling errors"
- Previous message: Thommes Thomassen: "Sun Java Desktop System - eth1 wireless detected, but not active"
- In reply to: Marcia Hon: "1 port, listening and connecting, how to"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Feb 2004 22:55:03 +1300
Marcia Hon <honm@rogers.com> wrote:
> Hi,
>
> I am implementing a client using TCP/IP and Berkeley sockets. I would like
> to have one port to connect to the server AND listen to incoming
> connections. I don't know how to do this.
Using select(2). fork(2) would also be a solution, depending on what you
wanted to do.
Search for 'beej' on Google and hit the first link.
And then go out and by 'UNIX Network Programming', by Stevens.
-- Cameron Kerr cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/ Empowered by Perl!
- Next message: Cameron Kerr: "Re: Linux-wlan compiling errors"
- Previous message: Thommes Thomassen: "Sun Java Desktop System - eth1 wireless detected, but not active"
- In reply to: Marcia Hon: "1 port, listening and connecting, how to"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|