Article View: borland.public.cppbuilder.nativeapi
Article #11575Re: How can my app talk to other instances, networked and local?
From: Remy Lebeau (TeamB)
Date: Thu, 05 Feb 2004 18:46
Date: Thu, 05 Feb 2004 18:46
21 lines
1947 bytes
1947 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com... > You mean the 255.255.255.0 subnet? I think that would be acceptable. Even though you can specify that as the destination of the broadcast, that doesn't mean every machine on the entire network with get the packet. More times then not, routers will block the broadcast packets when they arrive. And since UDP is a connectionless protocol, the sender of the broadcast will never know that the packets were blocked. > I've googled, but haven't come up yet with example code > or APIs for UDP. UDP is implemented via WinSock just as TCP is. A UDP socket works the same way in terms of the API as a TCP Socket does, except for the socket type is different (SOCK_DGRAM vs. SOCK_STREAM). Gambit
Technical Details
Message-ID:
<40228dd3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<jeh0201cn87itns31e9776ge0s7l7gkqe6@4ax.com> <4020d650$1@newsgroups.borland.com> <40213288$1@newsgroups.borland.com> <2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d12e7cf0a85501e9 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-05 10:40:27 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <jeh0201cn87itns31e9776ge0s7l7gkqe6@4ax.com> <4020d650$1@newsgroups.borland.com> <40213288$1@newsgroups.borland.com> <2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com> Subject: Re: How can my app talk to other instances, networked and local? Date: Thu, 5 Feb 2004 10:46:32 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40228dd3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076006355 67.22.138.253 (5 Feb 2004 10:39:15 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail