H
Houston Keach
The following code succeeds in the full dotnet framework but fails
when run in the compact framework. That is to say it throws the
expected "SocketException" in the full framework but throws the
mysterious
"System.InvalidOperationException:InvalidOperationException" under the
compact framework.
//////////////////////////////////////////////////////////////////////////
IPEndPoint EndPoint = new IPEndPoint( IPAddress.Parse("172.20.20.26"),
int.Parse("12345"));
Socket ClientSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
ClientSocket.Blocking = false;
{
ClientSocket.Connect( EndPoint );
}
//////////////////////////////////////////////////////////////////////////
My reading of the Socket class docs seems to suggest that non-blocking
IO should be supported in CF. Any ideas?
--Houston Keach
when run in the compact framework. That is to say it throws the
expected "SocketException" in the full framework but throws the
mysterious
"System.InvalidOperationException:InvalidOperationException" under the
compact framework.
//////////////////////////////////////////////////////////////////////////
IPEndPoint EndPoint = new IPEndPoint( IPAddress.Parse("172.20.20.26"),
int.Parse("12345"));
Socket ClientSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
ClientSocket.Blocking = false;
{
ClientSocket.Connect( EndPoint );
}
//////////////////////////////////////////////////////////////////////////
My reading of the Socket class docs seems to suggest that non-blocking
IO should be supported in CF. Any ideas?
--Houston Keach