Article View: borland.public.cppbuilder.internet.socket
Article #2380Re: TServerSocket SendText Exception
From: Remy Lebeau (TeamB)
Date: Thu, 20 Apr 2006 16:33
Date: Thu, 20 Apr 2006 16:33
22 lines
1655 bytes
1655 bytes
"Eric Patterson" <eric.patterson@bepco.com> wrote in message news:4447a6f6$1@newsgroups.borland.com... > I believe I understand how the ServerSocket should be used. Apparently you don't, because you didn't pay attention to a word I've told you. Your code is still wrong. You are not even close to using the kind of code I gave you earlier. Did you even try it? > The starting point of the exception is coming from this line > (line 56 in MsgServer.cpp): > > while(Server->ServerSocket1->Socket->Connections[ii]->SendText(AnsiString(AM sg+"\n"))==-1) As I explained to you earlier, that is a very bad way to send text to a socket. Gambit
Technical Details
Message-ID:
<4447b917$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4447a6f6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fea0b13af0f4efa8 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: <44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4447a6f6$1@newsgroups.borland.com> Subject: Re: TServerSocket SendText Exception Date: Thu, 20 Apr 2006 09:33:35 -0700 Lines: 24 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: 68.69.17.41 Message-ID: <4447b917$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145551127 68.69.17.41 (20 Apr 2006 09:38:47 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail