public void Connect() { TcpClient tcpClient = new TcpClient(); tcpClient.Connect(IpAddress, Port); client = new InterClient(tcpClient.Client); client.OnPacket += new EventHandler<InterPacketReceivedEventArgs>(ClientOnPacket); }
public InterPacketReceivedEventArgs(InterPacket packet, InterClient client) { this.Packet = packet; this.Client = client; }