Process.Start(...)
public static class HelloClass
{
public static void Main(string[] args)
{
}
}
void Init()
{
listener = new Socket(loopback.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
listener.Bind(localEndPoint);
listener.Listen(10);
listener.BeginAccept(OnBeginAsyncCallback, this);
}
private void OnBeginAsyncCallback(IAsyncResult asyncResult)
{
var clientSocket = listener.EndAccept(asyncResult);
listener.BeginAccept(OnBeginAsyncCallback, this);
// ...
}