Coap.Proxy.ServerListerner.StartServer C# (CSharp) Method

StartServer() public method

open proxy
public StartServer ( int port, string portName ) : void
port int webSocket port
portName string ipv6 gateway port
return void
        public void StartServer(int port,string portName)
        {
            coapWebSocektService = new WebSocketService(port);
            coapPortName = portName;
            this.listener.Start();
            this.coapWebSocektService.StartSuperWebSocketByProgramming();
        }
        // new connection

Usage Example

Esempio n. 1
0
        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();
            }

        }
All Usage Examples Of Coap.Proxy.ServerListerner::StartServer