🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2723

Re: TServerSocket compatability...

#2723
From: Remy Lebeau (TeamB)
Date: Wed, 22 Feb 2006 22:42
45 lines
2673 bytes
"Lance Robaldo" <RRobaldo@wltsoftware.com> wrote in message
news:43fce21e$1@newsgroups.borland.com...

> If I write a program using TServerSocket to handle incomming
> messages, can other Vendors access my socket using other tools?

Yes.  That is the nice thing about using sockets for communication.  They
are vendor-independant and cross-platform.

> I know I can easily write a client using TClientSocket, but can
> someone using Microsoft VB access my socket and send a message?

Yes.

> Or is the interface created by TServerSocket Borland specific?

The core socket interface is vendor-independant and standardized.  Vendors
can (and some do, like Microsoft) add custom extensions as well.

> My goal is to write an NT service application that just sits there
> waiting for data to process.  When it gets the data, (the "data" is
> actually a big String) it will process it and return the data to the
> client program.

That is perfectly fine.  Sockets work very well for that, especially from an
NT service.

> I'm assuming that TSocketServer is the best way to do this, but I won't
> be writing the client program, another vendor will and I need whatever I
> do to be compatable with them.

It will be.

> This project will probably not be run across the internet.  In
> all likelyhood both programs will reside on the same machine.

In that case, you have additional options available.  Named pipes work
particularly well on NT-based system.  As long as the vendor is targetting
the NT platform, then they can access a pipe that your service runs.

Sockets tend to be more flexible then pipes, though.


Gambit
Technical Details
Message-ID: <43fce8c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43fce21e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ceead16420a4ee1e
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43fce21e$1@newsgroups.borland.com>
Subject: Re: TServerSocket compatability...
Date: Wed, 22 Feb 2006 14:42:48 -0800
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43fce8c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1140648128 68.69.17.41 (22 Feb 2006 14:42:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail