Article View: borland.public.cppbuilder.nativeapi
Article #5034Re: TCustomWinSocket
From: Robert G. Hoover
Date: Tue, 01 Nov 2005 17:40
Date: Tue, 01 Nov 2005 17:40
43 lines
2056 bytes
2056 bytes
Thanks for clarifying... I saw "descriptor" as the SOCKET constructor return and didn't realize it was the same thing as the int SocketHandle. I had hoped that it was a simple typecast, as you later verified. Thanks again! Rob Remy Lebeau (TeamB) wrote: > "Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote in message > news:43677e1a@newsgroups.borland.com... > > >>I've been looking through the documentation for TWinServerSocket >>and I'm not seeing anything similar to the SOCKET parameter that >>setsockopt() accepts. > > > Yes, you have. > > >>Is the SocketHandle the same thing, and int address of the SOCKET > > structure? > > Yes. As per Borland's doc: > > "Use SocketHandle for Windows socket API calls that require the handle > to the socket." > > >>Is there a way to translate the TWinServerSocket into a SOCKET struct? > > > Simply cast the SocketHandle to a SOCKET. > > > Gambit > >
Technical Details
Message-ID:
<4367a877@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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:
<43627188@newsgroups.borland.com> <43628c88$1@newsgroups.borland.com> <43677e1a@newsgroups.borland.com> <4367a522$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ddf88f1d3aecd366 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 01 Nov 2005 12:40:11 -0500 From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: TCustomWinSocket References: <43627188@newsgroups.borland.com> <43628c88$1@newsgroups.borland.com> <43677e1a@newsgroups.borland.com> <4367a522$1@newsgroups.borland.com> In-Reply-To: <4367a522$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.142.36.34 Message-ID: <4367a877@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130866807 67.142.36.34 (1 Nov 2005 09:40:07 -0700) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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