Exemple #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);
        }
Exemple #2
0
 public EndPoint(string ipAddr, ushort p)
 {
     addr = new CAddr(ipAddr);
     port = p;
 }