Article View: borland.public.cppbuilder.internet.socket
Article #1623Re: Fixed :-) Great work
From: Remy Lebeau (TeamB)
Date: Fri, 08 Dec 2006 06:25
Date: Fri, 08 Dec 2006 06:25
34 lines
2246 bytes
2246 bytes
"Quentin David Jones" <quentin.jones@romteck.com.spamprotect> wrote in
message news:4578fa92$1@newsgroups.borland.com...
> I thought the service name was just a descriptive title - d'oh.
Then I guess you didn't read the documention for the Service property yet:
Service
Specifies the name of the service for which the socket connection is
used.
__property System::AnsiString Service = {read=FService,
write=SetService};
Description
Use Service to identify the use of the connection. Windows provides a
number of standard service names such as ftp, http, finger, and time.
Servers can specify additional services and their associated ports in a
SERVICES file. For more information, see the Microsoft documentation for
Windows sockets.
Certain port numbers are reserved for specific values of service. Thus,
Service provides a more meaningful way to specify the server Port to use for
the socket connection. For server sockets, using Service rather than Port
ensures that the server will listen for TCP/IP requests on the appropriate
port.
Note: Trying to change Service when the connection is open will raise an
ESocketError exception.
Gambit
Technical Details
Message-ID:
<4579052c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4578ba1b@newsgroups.borland.com> <4578bc9c$1@newsgroups.borland.com> <4578d02b$1@newsgroups.borland.com> <4578dae2$1@newsgroups.borland.com> <4578ed46@newsgroups.borland.com> <4578f53c@newsgroups.borland.com> <4578fa92$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c2ba0c1ed7538b68 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: <4578ba1b@newsgroups.borland.com> <4578bc9c$1@newsgroups.borland.com> <4578d02b$1@newsgroups.borland.com> <4578dae2$1@newsgroups.borland.com> <4578ed46@newsgroups.borland.com> <4578f53c@newsgroups.borland.com> <4578fa92$1@newsgroups.borland.com> Subject: Re: Fixed :-) Great work Date: Thu, 7 Dec 2006 22:25:28 -0800 Lines: 36 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: 75.83.34.171 Message-ID: <4579052c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1165559084 75.83.34.171 (7 Dec 2006 22:24:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail