🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11485

Re: How can my app talk to other instances, networked and local?

#11485
From: Remy Lebeau (TeamB)
Date: Fri, 06 Feb 2004 00:01
31 lines
2368 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:gsh520lcgru35gfubpf1q06s7fqkk7921p@4ax.com...

> This is an attempt to subvert the user's right to leave
> the app running with locked data.

Then I do not suggest UDP for that.  UDP is not reliable in general - it
does not guarantee packet delivery nor packet byte order like TCP does.

> Are you suggesting PGM instead of UDP?

I have no idea what PGM is.

> Yeah, got that far... just not sure what comes after that...... bind,
> listen, connect, access, recv....slogging on...

All of the above.  Actually, the connect() and listen() can be replaced with
sendto() and recvfrom().  But in any case, most of the socket principles are
the same regardless.

> I _could_ just set a file on the server, but since each instance might
> be hitting it 1000 times a sec, I figure network congestion would rule
> that out.   A global semifore is what I want (or maybe an octifore).

Sounds like what you really need is a single file server that all clients go
to, and the server handles and directs the requests for data, openings,
closings, etc. and notifies the rest of the clients accordingly when needed.


Gambit
Technical Details
Message-ID: <4022d78f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <jeh0201cn87itns31e9776ge0s7l7gkqe6@4ax.com> <4020d650$1@newsgroups.borland.com> <40213288$1@newsgroups.borland.com> <2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com> <40228dd3$1@newsgroups.borland.com> <gsh520lcgru35gfubpf1q06s7fqkk7921p@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 16:11:03 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> <40228dd3$1@newsgroups.borland.com> <gsh520lcgru35gfubpf1q06s7fqkk7921p@4ax.com>
Subject: Re: How can my app talk to other instances, networked and local?
Date: Thu, 5 Feb 2004 16:01:08 -0800
Lines: 33
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: <4022d78f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076025231 67.22.138.253 (5 Feb 2004 15:53:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail