🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ASync Lookup for ServerSocket in non-blocking ?

#1590
From: Remy Lebeau (TeamB)
Date: Thu, 07 Dec 2006 07:27
32 lines
2018 bytes
"Quentin David Jones" <quentin.jones@romteck.com.spamprotect> wrote in
message news:4577aa78@newsgroups.borland.com...

> I get an error like so upon running the service in non-blocking mode
> (blocking mode gives no error and no results) :

Please show your actual code.

> " Windows socket error: The requested name is valid and was found in
> the database, but it does not have the correct associated data being
> resolved for (11004), on API 'ASync Lookup' "

Services run in the SYSTEM account by default, which does not have access to
the network.  Try configuring the service to run in a user account that has
network permissions.

> Apparently, this means I need to set the ASyncStyles property of
> TCustomWinSocket to include the events I want to handle.

That is done for you automatically by simply setting the server into
non-blocking mode.

> How do I set these ASyncStyles please?

You can't set it manually.

P.S. please stop cross-posting.  It is against Borland's newsgroup
guidelines (http://info.borland.com/newsgroups).


Gambit
Technical Details
Message-ID: <4577c2eb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4577aa78@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6fbabc84eb654d68
X-Google-Thread: f5c5c,6fbabc84eb654d68
X-Google-Attributes: gid11508e,gidf5c5c,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket,borland.public.cppbuilder.vcl.components.using
References: <4577aa78@newsgroups.borland.com>
Subject: Re: ASync Lookup for ServerSocket in non-blocking ?
Date: Wed, 6 Dec 2006 23:27:02 -0800
Lines: 34
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: 75.83.34.171
Message-ID: <4577c2eb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1165476587 75.83.34.171 (6 Dec 2006 23:29:47 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail