Re: CAsyncSocket on vista
- From: "Ian Semmel" <anyone@xxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 05:32:04 +1000
The error you are getting is WSAEAFNOSUPPORT - Address Family Not
Supported
Perhaps when you are setting up your socket you are not initialising all
the fields or something.
Could be a VC 6 problem.
If you Google WSAEAFNOSUPPORT, you get a few zillion hits. Here is one of
them.
WSAEAFNOSUPPORT (10047) Address family not supported by protocol family.
Berkeley description: An address incompatible with the requested protocol
was used. For example, you shouldn't necessarily expect to be able to use
NS addresses with ARPA Internet protocols.
WinSock description: Same as Berkeley, and then some. The error occurs
with the function, which takes the socket type (protocol) and address
family as input parameters.
It also occurs with functions that take a socket handle and a sockaddr
structure as input parameters. A socket already has a type (a protocol),
and each sockaddr structure has an address family field to define its
format. A function fails with WSAEAFNOSUPPORT if the address family
referenced in sockaddr is not compatible with the referenced socket's
protocol.
This error apparently also takes the place of WSAEPFNOSUPPORT (which means
"protocol family not supported"), since that error is not listed for in
the v1.1 WinSock specification.
-----Original Message-----
From: Prashant Hardikar
[mailto:PrashantHardikar@xxxxxxxxxxxxxxxxxxxxxxxxx]
Posted At: Friday, 16 November 2007 2:29 AM
Posted To: microsoft.public.vc.mfc
Conversation: CAsyncSocket on vista
Subject: Re: CAsyncSocket on vista
I am sorry for not giving the text of the error message. I am using
TCP/IP
data stream socket. The port on which the service listens is 2500 and
the
port on which EXE listens is 2502.
-Prashant.
"Joseph M. Newcomer" wrote:
It helps if you actually give the text of the error code, e.g., anaddress incompatible
with the protocol has been given.were you using? What
Otherwise, there isn't really enough information here. What protocol
socket #?machine. I
joe
On Wed, 14 Nov 2007 13:53:00 -0800, Prashant Hardikar <Prashant
Hardikar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
We have a Windows service which is a part of our product which uses
CAsyncSocket to communicate with another EXE running on the same
well as thehave used VC++6.0 to compile the code for the both the service as
and otherEXE. The interprocess communication works fine on Win XP, Win2000,
debug'versions of Windows for the last 5 years.
I compiled the programs on Windows Vista using VC++ 6.0. The 'win32
release'configuration build seems to work fine. However in the 'Win 32
service using aconfiguration build, the socket communcation fails. I ran the
error codedebugger, I found out the CAsyncSocket::Connect() fails and the
could beobtained by calling GetLastError() is 10047. Any ideas why this
happening?Joseph M. Newcomer [MVP]
Thanks and Regards,
-Prashant Hardikar
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Re: CAsyncSocket on vista
- From: Joseph M . Newcomer
- Re: CAsyncSocket on vista
- Prev by Date: Re: MFC Application has encountered a problem and needs to close. HELP
- Next by Date: Re: CRectTracker color
- Previous by thread: Re: CAsyncSocket on vista
- Next by thread: Why INFINITE loop in a thread occupy so much CPU time??
- Index(es):