C# 클래스 System.Net.Sockets.NetworkStream

상속: System.IO.Stream, IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConvertToNotSocketOwner void
CopyToAsyncCore System.Threading.Task
DebugMembers void
InternalAbortSocket void
NetworkStream System.Buffers
Poll bool
PollRead bool
SetSocketTimeoutOption void
UnsafeBeginRead IAsyncResult
UnsafeBeginWrite IAsyncResult

공개 메소드들

메소드 설명
BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
Close ( int timeout ) : void
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : System.Threading.Task
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
NetworkStream ( Socket socket ) : System.Buffers
NetworkStream ( Socket socket, FileAccess access ) : System.Buffers
NetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System.Buffers
NetworkStream ( Socket socket, bool ownsSocket ) : System.Buffers
Read ( byte buffer, int offset, int size ) : int
ReadAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int size ) : void
WriteAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : System.Threading.Task

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
ConvertToNotSocketOwner ( ) : void
CopyToAsyncCore ( Stream destination, AwaitableSocketAsyncEventArgs ea, CancellationToken cancellationToken ) : System.Threading.Task
DebugMembers ( ) : void
InternalAbortSocket ( ) : void
NetworkStream ( ) : System.Buffers
Poll ( int microSeconds, SelectMode mode ) : bool
PollRead ( ) : bool
SetSocketTimeoutOption ( SocketShutdown mode, int timeout, bool silent ) : void
UnsafeBeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
UnsafeBeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult

메소드 상세

BeginRead() 공개 메소드

public BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginWrite() 공개 메소드

public BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state Object
리턴 IAsyncResult

Close() 공개 메소드

public Close ( int timeout ) : void
timeout int
리턴 void

CopyToAsync() 공개 메소드

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : System.Threading.Task
destination System.IO.Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndRead() 공개 메소드

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
리턴 int

EndWrite() 공개 메소드

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

FlushAsync() 공개 메소드

public FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task

NetworkStream() 공개 메소드

public NetworkStream ( Socket socket ) : System.Buffers
socket Socket
리턴 System.Buffers

NetworkStream() 공개 메소드

public NetworkStream ( Socket socket, FileAccess access ) : System.Buffers
socket Socket
access FileAccess
리턴 System.Buffers

NetworkStream() 공개 메소드

public NetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System.Buffers
socket Socket
access FileAccess
ownsSocket bool
리턴 System.Buffers

NetworkStream() 공개 메소드

public NetworkStream ( Socket socket, bool ownsSocket ) : System.Buffers
socket Socket
ownsSocket bool
리턴 System.Buffers

Read() 공개 메소드

public Read ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
리턴 int

ReadAsync() 공개 메소드

public ReadAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : Task
buffer byte
offset int
size int
cancellationToken System.Threading.CancellationToken
리턴 Task

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

public Write ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
리턴 void

WriteAsync() 공개 메소드

public WriteAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : System.Threading.Task
buffer byte
offset int
size int
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task