Article View: borland.public.cppbuilder.internet.socket
Article #5120Re: Sending Text Over A Socket
From: David Mulford
Date: Wed, 20 Oct 2004 03:36
Date: Wed, 20 Oct 2004 03:36
60 lines
2637 bytes
2637 bytes
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:
<4175dd32@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4174934f$1@newsgroups.borland.com> <417493aa@newsgroups.borland.com> <2tlc6sF21cg6jU1@uni-berlin.de>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> Subject: Re: Sending Text Over A Socket Date: Tue, 19 Oct 2004 23:36:14 -0400 Lines: 62 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; Original NNTP-Posting-Host: 68.82.67.41 Message-ID: <4175dd32@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098243378 68.82.67.41 (19 Oct 2004 20:36:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail