W
willy
Hi all,
I'm trying to create an System.Net.Sockets.IrDAClient instance with
Compact Framework 2.0 on a custom Windows CE 5.0 device. The creation
causes a SocketException with
ErrorCode 10047 to be thrown.
I found out, that also the creation of a System.Net.Sockets.Socket
instance as follows, causes the same SocketException with ErrorCode
10047:
Socket irdas = new Socket(AddressFamily.Irda, SocketType.Stream,
ProtocolType.IP);
ErrorCode 10047 indicates, that the chosen AddressFamily is not
supported
(http://support.microsoft.com/default.aspx?scid=kb;en-us;819124#XSLTH3193121122120121120120)
Thus, I wrote a native C++ application, where I create a Windows Socket
(code below) with AddressFamily=AF_IRDA and Type=SOCK_STREAM, which
works fine (e.g. the created socket is valid).
I would be thankfull for any ideas or indications. I spent a whole day
searching the web for a solution. I could provide more information if
requested.
Cheers Willy
--------------- Native Socket Creation Code ----------
WSADATA wsaData;
WORD wVersionRequested = 0x0101;
int wsaError;
wsaError = WSAStartup( wVersionRequested, &wsaData );
if ( wsaError != 0 ) {
printf("WSAStartup failed\n");
return FALSE;
}
printf("WSAStartup succeeded\n");
SOCKET irdasock = INVALID_SOCKET;
irdasock = socket(AF_IRDA, SOCK_STREAM, 0);
-------------------------------------------------------------------
I'm trying to create an System.Net.Sockets.IrDAClient instance with
Compact Framework 2.0 on a custom Windows CE 5.0 device. The creation
causes a SocketException with
ErrorCode 10047 to be thrown.
I found out, that also the creation of a System.Net.Sockets.Socket
instance as follows, causes the same SocketException with ErrorCode
10047:
Socket irdas = new Socket(AddressFamily.Irda, SocketType.Stream,
ProtocolType.IP);
ErrorCode 10047 indicates, that the chosen AddressFamily is not
supported
(http://support.microsoft.com/default.aspx?scid=kb;en-us;819124#XSLTH3193121122120121120120)
Thus, I wrote a native C++ application, where I create a Windows Socket
(code below) with AddressFamily=AF_IRDA and Type=SOCK_STREAM, which
works fine (e.g. the created socket is valid).
I would be thankfull for any ideas or indications. I spent a whole day
searching the web for a solution. I could provide more information if
requested.
Cheers Willy
--------------- Native Socket Creation Code ----------
WSADATA wsaData;
WORD wVersionRequested = 0x0101;
int wsaError;
wsaError = WSAStartup( wVersionRequested, &wsaData );
if ( wsaError != 0 ) {
printf("WSAStartup failed\n");
return FALSE;
}
printf("WSAStartup succeeded\n");
SOCKET irdasock = INVALID_SOCKET;
irdasock = socket(AF_IRDA, SOCK_STREAM, 0);
-------------------------------------------------------------------