🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15964

Re: WSA????

#15964
From: Bob Gonder
Date: Thu, 05 Jun 2003 15:22
14 lines
1716 bytes
"Tharun Pillay" <tharun@webmail.co.za> wrote:
>I've tried the following code in the OnConnect event of the TClientSocket
>though it returns 10038:
>
>WSAAsyncSelect ((SOCKET)Socket->Handle, Handle, WM_FD_CLOSE, FD_CLOSE)
>
>What am I doing wrong here?
>WSAENOTSOCK
>(10038)
>  Socket operation on nonsocket.
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I don't do VCL...is Socket->Handle a "SOCKET"?  Probably not since you
have to cast it.  Pass the SOCKET.
Technical Details
Message-ID: <4snudvklkjqerdn2muop4lo7jhpub5qb59@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3edc7a5c@newsgroups.borland.com> <3edc7f28@newsgroups.borland.com> <3edcb8aa@newsgroups.borland.com> <3edccfa2$1@newsgroups.borland.com> <3eddb43a@newsgroups.borland.com> <3ede333d@newsgroups.borland.com> <obssdvopq540mjv03irip73n9rmd9aes4k@4ax.com> <3edf04e1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,30c81141f30ce678
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-05 08:27:23 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WSA????
Date: Thu, 05 Jun 2003 08:22:40 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <4snudvklkjqerdn2muop4lo7jhpub5qb59@4ax.com>
References: <3edc7a5c@newsgroups.borland.com> <3edc7f28@newsgroups.borland.com> <3edcb8aa@newsgroups.borland.com> <3edccfa2$1@newsgroups.borland.com> <3eddb43a@newsgroups.borland.com> <3ede333d@newsgroups.borland.com> <obssdvopq540mjv03irip73n9rmd9aes4k@4ax.com> <3edf04e1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.151
X-Trace: newsgroups.borland.com 1054826551 67.31.164.151 (5 Jun 2003 08:22:31 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail