🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send msg to another pc over network

#8936
From: Mentor
Date: Wed, 18 Aug 2004 21:11
55 lines
2530 bytes
Hi!

Pity, I does not work..I examined the BCB 6.0 "Chat" example but i couldn't solve my problem.
Any suggestion?

Mentor

Svennis <sven_olovl@nospam.hotmail.com> wrote:
>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: <4123c602$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4121d280$1@newsgroups.borland.com> <4121e639$1@newsgroups.borland.com> <4122266e$1@newsgroups.borland.com> <4122312d$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
From: "Mentor" <Mentor@nospam.com>
Sender: "Mentor" <Mentor@nospam.com>
Reply-To: "Mentor" <Mentor@nospam.com>
Subject: Re: Send msg to another pc over network
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 195.175.37.55     
X-Forwarded-For: 81.214.160.172
References: <4121d280$1@newsgroups.borland.com> <4121e639$1@newsgroups.borland.com> <4122266e$1@newsgroups.borland.com> <4122312d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4123c602$1@newsgroups.borland.com>
Date: 18 Aug 2004 14:11:30 -0700
X-Trace: newsgroups.borland.com 1092863490 207.105.83.66 (18 Aug 2004 14:11:30 -0700)
Lines: 56
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail