Beispiel #1
0
        public bool BeginConnect(NetChannelType channel, string ip, int port, Action <bool, NetChannelType> callback = null)
        {
            NetChannel netChannel = GetChannel(channel);

            if (netChannel == null)
            {
                return(false);
            }
            return(netChannel.BeginConnect(ip, port, callback));
        }