Article View: borland.public.cppbuilder.internet.socket
Article #2331Re: Multiple serversockets in a single executable?
From: Arska
Date: Thu, 04 May 2006 07:59
Date: Thu, 04 May 2006 07:59
44 lines
2510 bytes
2510 bytes
Still no solution. Now I am in a situation where server1 works ok. Server 2 establish connection, but when I send some data to it from remote client, it gives ClientRead event ok, but when I try to read the data with ReceiveText() it gives on exception and errorcode 10057. Connection is lost. If I use ServerSocket->Socket->ActiveConncetions[x]->SocketHandle before ReceiveText(), debugger says that function call is terminated (E2122) by unhandled exception xxxxxxx at yyyyyy Something to do with threads? Ari "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:444fa8da$1@newsgroups.borland.com... > > "Arska" <joku@eiolemassa.fi> wrote in message > news:444f28ce@newsgroups.borland.com... > > > Is it possible to use two TServerSocket component in a single application? > > Yes, provided that they are active on different IP/Ports from each other. > > > I have used two TServerSocket components. The first works ok, > > but the second refuses to connect. It gives an event "On connecting", > > but don't establish connection. > > How exactly do you have your servers configured? Are you using them in > blocking or non-blocking mode? Is the OnAccept event being triggered on the > second server at all? Are you getting an OnError event triggered on the > client? If so, which ErrorCode is it reporting? Where are the clients > located on the network in relation to the server? Which IP/Port are the > clients trying to connect to exactly? > > Please provide more details. > > > Gambit > >
Technical Details
Message-ID:
<4459b46c$1@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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<444f28ce@newsgroups.borland.com> <444fa8da$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3bf6510caf6f0f0e X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Arska" <joku@eiolemassa.fi> Newsgroups: borland.public.cppbuilder.internet.socket References: <444f28ce@newsgroups.borland.com> <444fa8da$1@newsgroups.borland.com> Subject: Re: Multiple serversockets in a single executable? Date: Thu, 4 May 2006 10:59:40 +0300 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 NNTP-Posting-Host: 130.188.112.160 Message-ID: <4459b46c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146729580 130.188.112.160 (4 May 2006 00:59:40 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail