コード例 #1
0
 public void CreateInit(string strIP, int nIP, System.Object objExtend = null)
 {
     _strIP      = strIP;
     _socketPool = new ShortSocketPool();
     _listener   = new KKBaseListener(msgQueue, MsgFactory.Lobby);
     _protocal   = new KKBaseProtocal();
 }
コード例 #2
0
    public void CreateInit(string strIP, int nPort, System.Object objExtend = null)
    {
        _strIP = strIP;
        _nPort = nPort;

        _listener = new KKBaseListener(msgQueue, MsgFactory.Room);
        _protocal = new KKBaseProtocal();
        _socket   = new USocket(_listener, _protocal);

        _socket.Connect(_strIP, nPort);
    }