Article View: comp.unix.programmer
Article #3497Coding for Multiple IP addresses
From: csteow
Date: Thu, 04 Oct 2001 03:53
Date: Thu, 04 Oct 2001 03:53
14 lines
1412 bytes
1412 bytes
Hi: I plan to have a machine with 3 IP addresses and I run my app to listen to port 9000. How to do socket programming on handling multiple IP to listen to same port? Is it using "bind()" and use "select()" to pass in the three socket handle? I can't try on my own since I don't own multiple IP machine, could anybody tell me that what I mention on above correct? Thanks. Regards, Chin Siang
Technical Details
Message-ID:
<9pgjkm$3rv$1@newton3.pacific.net.sg>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!newsserver.pacific.net.sg!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5c28fb306d42b63c,start X-Google-Attributes: gid11318c,public X-Google-Thread: fc89c,5c28fb306d42b63c,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f65d0,5c28fb306d42b63c,start X-Google-Attributes: gidf65d0,public X-Google-ArrivalTime: 2001-10-03 21:00:24 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!newsserver.pacific.net.sg!not-for-mail From: "csteow" <chinsiang@csksoftware.com.sg> Newsgroups: comp.unix.programmer,gnu.gcc,gnu.gcc.help Subject: Coding for Multiple IP addresses Date: Thu, 4 Oct 2001 11:53:30 +0800 Organization: Subscriber of Pacific Internet Lines: 16 Message-ID: <9pgjkm$3rv$1@newton3.pacific.net.sg> NNTP-Posting-Host: 202.42.188.189 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400