public PrependableNetworkStream(Socket socket, System.IO.FileAccess fileAccess, bool ownsSocket, byte[] bytesToPrepend)
     : this(socket, fileAccess, ownsSocket)
 {
     if (bytesToPrepend == null)
         _bufferToPrepend = new NetworkBuffer(new byte[0]);
     else
         _bufferToPrepend = new NetworkBuffer(bytesToPrepend);
 }
Example #2
0
 public PrependableNetworkStream(Socket socket, System.IO.FileAccess fileAccess, bool ownsSocket, byte[] bytesToPrepend)
     : this(socket, fileAccess, ownsSocket)
 {
     if (bytesToPrepend == null)
     {
         _bufferToPrepend = new NetworkBuffer(new byte[0]);
     }
     else
     {
         _bufferToPrepend = new NetworkBuffer(bytesToPrepend);
     }
 }
 public void Dispose()
 {
     _stream.Dispose();
     _bufferToPrepend = null;
 }
Example #4
0
 public void Dispose()
 {
     _stream.Dispose();
     _bufferToPrepend = null;
 }