StartServer() 공개 메소드

open proxy
public StartServer ( int port, string portName ) : void
port int webSocket port
portName string ipv6 gateway port
리턴 void
예제 #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();
            }

        }
예제 #2
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();
            }
        }