public void RegisterNetworkChannel(TcpNetworkChannel channel) { if (channel != null) { this.networkChannels[channel.Id] = channel; } }
private static SocketError SendAllBytes(Socket dest, byte[] bytes) { return TcpNetworkChannel.SendAllBytes(dest, new ArraySegment<byte>(bytes)); }