Name
NetworkStream
Synopsis
This class creates a basic network stream from an underlying socket. It allows for simple data access to the stream and supports permissions settings.
Public Class NetworkStream : Inherits System.IO.Stream ' Public Constructors Public Sub New( ByVal socket As Socket) Public Sub New(ByVal socket As Socket, ByVal ownsSocket As Boolean) Public Sub New(ByVal socket As Socket, ByVal access As System.IO.FileAccess) Public Sub New(ByVal socket As Socket, ByVal access As System.IO.FileAccess, ByVal ownsSocket As Boolean) ' Public Instance Properties Overrides Public ReadOnly Property CanRead As Boolean Overrides Public ReadOnly Property CanSeek As Boolean Overrides Public ReadOnly Property CanWrite As Boolean Overridable Public ReadOnly Property DataAvailable As Boolean Overrides Public ReadOnly Property Length As Long Overrides Public Property Position As Long ' Protected Instance Properties Protected Property Readable As Boolean Protected Property Socket As Socket Protected Property Writeable As Boolean ' Public Instance Methods Overrides Public Function BeginRead(ByVal buffer As Byte(), ByVal offset As Integer, ByVal size As Integer, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult Overrides Public Function BeginWrite( ByVal buffer As Byte(), ByVal offset As Integer, ByVal size As Integer, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult Overrides Public Sub Close() Overrides Public Function EndRead( ByVal asyncResult ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.