🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sending Text Over A Socket

#5121
From: David Mulford
Date: Wed, 20 Oct 2004 03:39
77 lines
3076 bytes
Fixed my problem,

Uh yea, it was definitely my fault here. I was using the call:

Socket->SendText("Test Send");

I needed add the newline char '\n' in order for it to work...

Thanks Gianna for your help,
David


"David Mulford" <dmul007@yahoo.com> wrote in message 
news:4175dd32@newsgroups.borland.com...
> ok,
>
> I went and tried again, TClientSocket is still only sending binary over 
> sockets.
>
> Here is my OnConnect event handler that attempts to send text over the 
> socket:
>
> void __fastcall TChildForm::ConnectionConnect(TObject *Sender, 
> TCustomWinSocket *Socket)
> {
>
>        Display->Lines->Add("* Connected to \"" + Socket->RemoteHost + 
> "\"");
>
>        // Now we need to send the NICK and USER to the server
>        // so that the IRC server will properly connect us.
>        Display->Lines->Add("* Sending connection info...");
>
>        // This line is not working correctly, I don't think.
>        Socket->SendText("Send Test");
>
> }
>
>
>
>
> "Gianna Stefani" <gianna.stefani@j-b.org> wrote in message 
> news:2tlc6sF21cg6jU1@uni-berlin.de...
>> TClientSocket sends text just as easily as it receives it.
>>
>> -- 
>> Gianna Stefani
>>
>>
>> "David Mulford" <dmul007@yahoo.com> wrote in message
>> news:417493aa@newsgroups.borland.com...
>>> Sorry for the mispost, I'm writing a slimmed-down IRC client. Long 
>>> day...
>>>
>>>
>>> "David Mulford" <dmul007@yahoo.com> wrote in message
>>> news:4174934f$1@newsgroups.borland.com...
>>> > Hey all,
>>> >
>>> > I'm slimmed-down IRC client here, and I was wondering if there was a
>>> > component out there that sends text only over a socket? I tried the
>>> > TClientSocket, which seems to receive text, but I could only get to 
>>> > send
>>> > binary. I also tried TTcpClient, which sends text fine, but for some
>>> > reason, the OnReceive event won't trigger, so that's a definite no go.
>>> >
>>> > Any ideas?
>>> >
>>> > Thanks,
>>> > David
>>> >
>>>
>>>
>>
>>
>
> 
Technical Details
Message-ID: <4175dddb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4174934f$1@newsgroups.borland.com> <417493aa@newsgroups.borland.com> <2tlc6sF21cg6jU1@uni-berlin.de> <4175dd32@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ece8d99f83d2b6c4
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "David Mulford" <dmul007@yahoo.com>
From: "David Mulford" <dmul007@yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4174934f$1@newsgroups.borland.com> <417493aa@newsgroups.borland.com> <2tlc6sF21cg6jU1@uni-berlin.de> <4175dd32@newsgroups.borland.com>
Subject: Re: Sending Text Over A Socket
Date: Tue, 19 Oct 2004 23:39:06 -0400
Lines: 79
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 68.82.67.41
Message-ID: <4175dddb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098243547 68.82.67.41 (19 Oct 2004 20:39:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail