Пример #1
0
        public Int32 Init(string ipaddr, ushort port)
        {
            CAddr addr = new CAddr(ipaddr);

            server      = new EndPoint(ipaddr, port);
            rcvEndPoint = new EndPoint();
            Int32 err = ServerLibrary.Server_initServer(connection, port);

            return(err);
        }
Пример #2
0
        public Int32 Init(ushort port)
        {
            Int32 err = ServerLibrary.Server_initServer(server, port);

            return(err);
        }