public StartServer ( int port, string portName ) : void | ||
port | int | webSocket port |
portName | string | ipv6 gateway port |
Résultat | void |
static void Main(string[] args) { ServerListerner coapProxyServer = new ServerListerner(Int32.Parse(GetAppConfig("listenPort"))); coapProxyServer.StartServer(Int32.Parse(GetAppConfig("webSocetPort")),GetAppConfig("portName")); while (true) { coapProxyServer.AcceptConnection(); } }
static void Main(string[] args) { ServerListerner coapProxyServer = new ServerListerner(Int32.Parse(GetAppConfig("listenPort"))); coapProxyServer.StartServer(Int32.Parse(GetAppConfig("webSocetPort")), GetAppConfig("portName")); while (true) { coapProxyServer.AcceptConnection(); } }