Re: 1 port, listening and connecting, how to

From: Cameron Kerr (cameron.kerr_at_paradise.net.nz)
Date: 02/10/04


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!


Relevant Pages

  • Re: Zugriff auf SQL-Server 7.0
    ... Port blockiert und ob überhaupt noch Port 1433 und nicht ... Doch als Client schon. ... > Zugang sowohl über TCP/IP als auch über Named Pipes. ...
    (microsoft.public.de.sqlserver)
  • DICOM on SSH?
    ... with its peers via TCP/IP. ... There is a client and a server portion to this application that listens ... sends to that port. ...
    (comp.security.ssh)
  • Re: Kerio 2.1.5 Blocking SQL remote server
    ... SQL Server 2000 supports a variety of connection protocols. ... faster also) is TCP/IP - SQL Server listens on a known port, your client ... connects to that port. ...
    (comp.security.firewalls)
  • Re: Drucker über TCP/IP Port nicht erreichbar
    ... > Win xp Pro ist ein Drucker mit Printserver nicht über den ... > TCP/IP Port nicht erreichbar, ... > bei einem Client wo es funktioniert. ...
    (microsoft.public.de.german.windowsxp.networking)
  • Re: thin client com ports
    ... I'm glad that you got at least one more client working! ... MCSE, CCEA, Microsoft MVP - Terminal Server ... the COM port settings? ... I am testing several thin clients. ...
    (microsoft.public.windows.terminal_services)