Exemple #1
0
		public object Clone()
		{
			var clone = new SocketHeader();
			clone.length = length;
			clone.msg = msg;

			return clone;
		}
Exemple #2
0
        public object Clone()
        {
            var clone = new SocketHeader();

            clone.length = length;
            clone.msg    = msg;

            return(clone);
        }
Exemple #3
0
 public SocketData(SocketHeader header, byte[] packet_data)
 {
     this.header = (SocketHeader)header.Clone();
     this.data   = new byte[this.header.length];
     Buffer.BlockCopy(packet_data, 0, this.data, 0, this.header.length);
 }
Exemple #4
0
 public SocketData(SocketHeader header)
 {
     this.header = (SocketHeader)header.Clone();
     this.data   = new byte[this.header.length];
 }
Exemple #5
0
		public SocketData(SocketHeader header, byte[] packet_data)
		{
			this.header = (SocketHeader) header.Clone();
			this.data = new byte[this.header.length];
            Buffer.BlockCopy(packet_data, 0, this.data, 0, this.header.length);
		}
Exemple #6
0
		public SocketData(SocketHeader header)
		{
			this.header = (SocketHeader) header.Clone();
			this.data = new byte[this.header.length];
		}