Download full life of pi 2012 movie in hindi dubbed free in HD video quality.Q:
Asynchronous C# Socket - connection lost
I have a Windows Service that uses a TCP/IP Socket. The C# source code is below.
public void Start(int port)
{
try
{
_ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPAddress ip = IPAddress.Parse("XXX.XXX.XXX.XXX");
// bind the socket to the IP address
_ServerSocket.Bind(ip);
// set the non-blocking property
_ServerSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.SoReuseAddress, true);
// start listening for clients on the specified port
_ServerSocket.Listen(port);
// set the ReceiveBufferSize property
_ServerSocket.ReceiveBufferSize = 16384;
// set the time-out property
_ServerSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 5000);
// start listening for clients on the specified port
_ServerSocket.BeginAccept(new AsyncCallback(Accept), _ServerSocket);
// ignore any socket exception because it will cause application to crash and is not required
_ServerSocket.BeginAccept(new AsyncCallback(Accept), _ServerSocket);
} ac619d1d87
Related links:
Comments