🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCustomWinSocket Lock()!!!

#4317
From: qyte
Date: Sat, 05 Mar 2005 11:41
22 lines
2161 bytes
Hans Galema wrote:

>> Hans Galema wrote:

> Why do all these functions need the ServerSocket as parameter ?


It could be just NULL, why do you stuck on such details. I told That 
this works but not when Both the client and the server send data at the 
same time and wait then to receive the corresponding answer. There are 
not two instances. let's say that i am using it from my house and 
connect with my friend 300 miles away. How is that not understood. One 
will be server and another will be the client. the server accets 4 
client requests and the client has 4 TClientSockets that are connected 
to the server. i am just using the TCustomWinSocket *sock[4] just to 
avoid using if(IsServer)...else... and it works great.

NOW do you know if i somehow can tell at a single moment if another 
sock[t] t!=current, is sending or reiceving data? because i think the 
mess is due to the winsock. I tried and changes the sockets with the 
winapi func setsockopt to TCP_NODELAY. i haven't tried it yet but i hope 
that it will be better.
Technical Details
Message-ID: <42299af5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4228f8c1$1@newsgroups.borland.com> <42290e8b$1@newsgroups.borland.com> <42297c51$1@newsgroups.borland.com> <42298b47$1@newsgroups.borland.com> <42299308@newsgroups.borland.com> <42299621$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9c76e7cb52ebcfdd
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 05 Mar 2005 13:41:40 +0200
From: qyte <gyte@vivodinet.gr>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TCustomWinSocket Lock()!!!
References: <4228f8c1$1@newsgroups.borland.com> <42290e8b$1@newsgroups.borland.com> <42297c51$1@newsgroups.borland.com> <42298b47$1@newsgroups.borland.com> <42299308@newsgroups.borland.com> <42299621$1@newsgroups.borland.com>
In-Reply-To: <42299621$1@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1253; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.171.210.195
Message-ID: <42299af5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110022901 83.171.210.195 (5 Mar 2005 03:41:41 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail