L
leon
Hi
Strangest thing happened, the asynchronous command
Socket.BeginConnect, start behave in a Synchronous !!!!
mode.
Here some code:
try
{
_CountPackets = 0;
IPAddress ipAddress =
Dns.GetHostEntry(IpServer).AddressList[0];
_IpEndpoint = new IPEndPoint(ipAddress, PortServer);
_ClientSocket = new Socket(
AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
IAsyncResult asyncConnect =
_ClientSocket.BeginConnect(
_IpEndpoint,
new AsyncCallback(ConnectCallback),
_ClientSocket);
}
catch (Exception exc)
{
CloseSocket();
}
The same code(_ClientSocket.BeginConnect) runs in Asynchronous!!! mode
on a different machine.
Does any one know what is all about ?
thanks
Strangest thing happened, the asynchronous command
Socket.BeginConnect, start behave in a Synchronous !!!!
mode.
Here some code:
try
{
_CountPackets = 0;
IPAddress ipAddress =
Dns.GetHostEntry(IpServer).AddressList[0];
_IpEndpoint = new IPEndPoint(ipAddress, PortServer);
_ClientSocket = new Socket(
AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
IAsyncResult asyncConnect =
_ClientSocket.BeginConnect(
_IpEndpoint,
new AsyncCallback(ConnectCallback),
_ClientSocket);
}
catch (Exception exc)
{
CloseSocket();
}
The same code(_ClientSocket.BeginConnect) runs in Asynchronous!!! mode
on a different machine.
Does any one know what is all about ?
thanks