Пример #1
0
    public bool Connect(int port, int playerId)
    {
        if (Connected)
        {
            return(false);
        }

        kcp = new KcpOnUdp(TcpClientProxy.Ins.server.Address.ToString(), port, playerId, this);
        kcp.Connect(TcpClientProxy.Ins.server.Address.ToString(), port);
        Connected = true;
        return(true);
    }
Пример #2
0
 public void handleClose(KcpOnUdp kcp, int errorCode)
 {
 }