🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple serversockets in a single executable?

#2333
From: Hans Galema
Date: Thu, 04 May 2006 08:12
24 lines
1981 bytes
Arska wrote:
> Still no solution. Now I am in a situation where server1 works ok. Server 2
> establish connection,

<hmm> A server accepts a 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.

Please show your actual code for the OnRead eventhandler.

> If I use ServerSocket->Socket->ActiveConncetions[x]->SocketHandle before
> ReceiveText(), 

There is no need to use that. What do you think it would bring ?

> Something to do with threads?

Are you using threads ?

Please do not send back a whole post. Trim it.

Hans.
Technical Details
Message-ID: <4459b884@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!195.62.97.14.MISMATCH!newsfeed0.kamp.net!newsfeed.kamp.net!news.osn.de!diablo2.news.osn.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <444f28ce@newsgroups.borland.com> <444fa8da$1@newsgroups.borland.com> <4459b46c$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
Date: Thu, 04 May 2006 10:12:50 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Multiple serversockets in a single executable?
References: <444f28ce@newsgroups.borland.com> <444fa8da$1@newsgroups.borland.com> <4459b46c$1@newsgroups.borland.com>
In-Reply-To: <4459b46c$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <4459b884@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146730628 145.98.201.248 (4 May 2006 01:17:08 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!195.62.97.14.MISMATCH!newsfeed0.kamp.net!newsfeed.kamp.net!news.osn.de!diablo2.news.osn.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail