Article View: borland.public.cppbuilder.internet.socket
Article #4310Re: TCustomWinSocket Lock()!!!
From: Remy Lebeau (TeamB)
Date: Sat, 05 Mar 2005 01:42
Date: Sat, 05 Mar 2005 01:42
26 lines
1781 bytes
1781 bytes
"qyte" <gyte@vivodinet.gr> wrote in message news:4228f8c1$1@newsgroups.borland.com... > Does anyone know what exactly should i call lock > and unlock functions for? Nothing. They are called automatically by the TCustomWinSocket internally. > will they work on non-blocking mode? Yes. > if there are 4 Sockets using the same port Using in what way? Bound to locally, or connecting to remotely? > and i use Lock on the first will the others be able to use the Port for reading and writing? Lock() and Unlock() only affect the socket they are called on. They are used to provide thread-safe access to the socket so that multiple threads do not try to all read from, or all write to, the socket at the same time. Gambit
Technical Details
Message-ID:
<42290e8b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4228f8c1$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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4228f8c1$1@newsgroups.borland.com> Subject: Re: TCustomWinSocket Lock()!!! Date: Fri, 4 Mar 2005 17:42:43 -0800 Lines: 28 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: <42290e8b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109986955 68.69.17.41 (4 Mar 2005 17:42:35 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail