Method | Description | |
---|---|---|
Close ( ) : void |
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
|
|
ReusableSocketNetworkStream ( Socket socket ) : System |
Creates a new instance of the T:System.Net.Sockets.NetworkStream class for the specified T:System.Net.Sockets.Socket.
|
|
ReusableSocketNetworkStream ( Socket socket, FileAccess access ) : System |
Creates a new instance of the T:System.Net.Sockets.NetworkStream class for the specified T:System.Net.Sockets.Socket with the specified access rights.
|
|
ReusableSocketNetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System |
Creates a new instance of the T:System.Net.Sockets.NetworkStream class for the specified T:System.Net.Sockets.Socket with the specified access rights and the specified T:System.Net.Sockets.Socket ownership.
|
|
ReusableSocketNetworkStream ( Socket socket, bool ownsSocket ) : System |
Initializes a new instance of the T:System.Net.Sockets.NetworkStream class for the specified T:System.Net.Sockets.Socket with the specified T:System.Net.Sockets.Socket ownership.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the T:System.Net.Sockets.NetworkStream and optionally releases the managed resources.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public ReusableSocketNetworkStream ( Socket socket ) : System | ||
socket | Socket |
/// The |
return | System |
public ReusableSocketNetworkStream ( Socket socket, FileAccess access ) : System | ||
socket | Socket |
/// The |
access | FileAccess |
/// A bitwise combination of the |
return | System |
public ReusableSocketNetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System | ||
socket | Socket |
/// The |
access | FileAccess |
/// A bitwise combination of the |
ownsSocket | bool |
/// Set to true to indicate that the |
return | System |
public ReusableSocketNetworkStream ( Socket socket, bool ownsSocket ) : System | ||
socket | Socket |
/// The |
ownsSocket | bool |
/// Set to true to indicate that the |
return | System |