🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: threadblocking server connection handling

#4153
From: havl
Date: Thu, 24 Mar 2005 20:48
16 lines
1890 bytes
thank you very much for your help, patience and attention

i guess that it was not a good idea to interrupt reading with writing and 
inversly
the code helped to improve the procedure and it works much better now but...
there was the same problem when i closed client application using the x icon 
in top right corner of the window without disconnecting before (even when i 
placed Socket->Close() in OnDestroy,OnClose, OnCloseQuery) and exception was 
thrown pointing this time to strm->Read command in ReadBuffer function :) 
and saying the same: "the network location is no loger available; code 64"
so
i put Sleep(5000) after Socket->Close() in client application OnDestroy (!)
and this time i'm curious why it's finally working
the connection is closed properly on the server in all cases i can arrange 
but the client application window dissapears immedietely without any 5s 
delays 
Technical Details
Message-ID: <42432745$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4242c0bb@newsgroups.borland.com> <4242c5a1$1@newsgroups.borland.com> <4242da71@newsgroups.borland.com> <42431221$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,541706e3e4df9e6e
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "havl" <havl83@wp.pl>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4242c0bb@newsgroups.borland.com> <4242c5a1$1@newsgroups.borland.com> <4242da71@newsgroups.borland.com> <42431221$1@newsgroups.borland.com>
Subject: Re: threadblocking server connection handling
Date: Thu, 24 Mar 2005 21:48:11 +0100
Lines: 18
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: 81.219.101.38
Message-ID: <42432745$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111697221 81.219.101.38 (24 Mar 2005 12:47:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail