public ServerLoginUI(string authEndpointUrl) { InitializeComponent(); webBrowser1.Url = new Uri(authEndpointUrl); var server = new KayakServer(); server.UseFramework(); server.Start(new IPEndPoint(IPAddress.Any, 25512)); this.FormClosing += (s, e) => server.Stop(); }
public void Start(int PortHTTP, int PortTCP) { if (mStarted) { return; } mStarted = true; mPortHttp = PortHTTP; mPortTcp = PortTCP; // HTTP KayakServer server = new KayakServer(); server.UseFramework(); server.Start(new IPEndPoint(IPAddress.Any, mPortHttp)); // TCP ValTcpService ts = new ValTcpService(mPortTcp); DoLoop(); }