public ConnectionDataEventArgs(Connection connection, IEnumerable<byte> data)
     : base(connection)
 {
     this.Data = data ?? new byte[0];
 }
Example #2
0
 public IOClient(Connection c)
 {
     this.connection = c;
     this.connectedAt = Server.CurrentTimeMillis();
     this.mm_stream = new PacketWriter(255);
 }
 public ConnectionEventArgs(Connection connection)
 {
     if (connection == null)
         throw new ArgumentNullException("connection");
     this.Connection = connection;
 }