Article View: borland.public.cppbuilder.nativeapi
Article #9019Re: Send msg to another pc over network
From: Svennis
Date: Tue, 17 Aug 2004 16:24
Date: Tue, 17 Aug 2004 16:24
46 lines
2404 bytes
2404 bytes
Hi again.
Try
ClientSocket1->Socket->SendText(Edit1->Text + "\n\r");
it terminates the string.
//---------------------------------------------------
Host is the domain e t c as returned from DNS not the OS assigned name i
think :-|
from Helpfile
8<-----------------------------------
Specifies an alias for the IP address of the server system.
__property System::AnsiString Host = {read=FHost, write=SetHost};
Description
Host is a string containing the domain name and service of a particular
system, such as
http://www.wSite.Com
For client sockets, set Host to the system with which the client socket
should form a connection. When the socket opens a connection, it looks
up the IP address for the server socket using the value of Host.
Some servers change the system or IP address that is associated with a
particular host name. Using a host name allows the client socket to find
the abstract site represented by the host name, even when it has moved
to a new IP address.
If Host is set, it takes precedence over the Address property when
looking up the address of the server.
Note: Trying to change Host when the connection is open will raise an
ESocketError exception.
8<-----------------------------------
--
Greeting from Sweden:
/Svennis
http://w1.213.telia.com/~u21316909/
Technical Details
Message-ID:
<4122312d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4121d280$1@newsgroups.borland.com> <4121e639$1@newsgroups.borland.com> <4122266e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5649840399278a78 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 17 Aug 2004 18:24:33 +0200 From: Svennis <sven_olovl@nospam.hotmail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Send msg to another pc over network References: <4121d280$1@newsgroups.borland.com> <4121e639$1@newsgroups.borland.com> <4122266e$1@newsgroups.borland.com> In-Reply-To: <4122266e$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.210.155.168 Message-ID: <4122312d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092759853 217.210.155.168 (17 Aug 2004 09:24:13 -0700) Lines: 46 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail