Exemple #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();
            }

        }
Exemple #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();
            }
        }