Mentalis.org Security Library documentation

SecureNetworkStream Members

Public Instance Constructors

SecureNetworkStreamOverloaded. Initialize a new instance of the SecureNetworkStream class.

Public Instance Properties

CanRead Gets a value that indicates whether the current stream supports writing.
CanSeek Gets a value indicating whether the stream supports seeking. This property always returns false.
CanWrite Gets a value that indicates whether the current stream supports writing.
Length The length of the data available on the stream. This property always throws a NotSupportedException.
Position Gets or sets the current position in the stream. This property always throws a NotSupportedException.

Public Instance Methods

BeginRead Begins an asynchronous read from a stream.
BeginWrite Begins an asynchronous write to a stream.
Close Closes the stream and optionally closes the underlying SecureSocket.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
EndRead Handles the end of an asynchronous read.
EndWrite Handles the end of an asynchronous write.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Flush Flushes data from the stream. This method is reserved for future use.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
Read Reads data from the stream.
ReadByte (inherited from Stream)Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
Seek Sets the current position of the stream to the given value. This method always throws a NotSupportedException.
SetLength Sets the length of the stream. This method always throws a NotSupportedException.
ToString (inherited from Object)Returns a String that represents the current Object.
Write Writes data to the stream.
WriteByte (inherited from Stream)Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Protected Instance Properties

Socket Gets the underlying network connection.

Protected Instance Methods

CreateWaitHandle (inherited from Stream)Allocates a WaitHandle object.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Explicit Interface Implementations

IDisposable.Dispose (inherited from Stream)

See Also

SecureNetworkStream Class | Org.Mentalis.Security.Ssl Namespace