C# 클래스 TestApp.StateObject

파일 보기 프로젝트 열기: graffen/NLog.Targets.Syslog

공개 메소드들

메소드 설명
BeginReceive ( AsyncCallback readCallback ) : void
EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void

보호된 메소드들

메소드 설명
HandleChunks ( string receivedString, Action receivedStringAction ) : void
HandleFirstReceive ( MemoryStream ms ) : void
StateObject ( Socket socket ) : System

비공개 메소드들

메소드 설명
BufferToString ( int position, int bytesRead ) : string
EndReceive ( IAsyncResult asyncResult ) : int

메소드 상세

BeginReceive() 공개 메소드

public BeginReceive ( AsyncCallback readCallback ) : void
readCallback AsyncCallback
리턴 void

EndReceive() 공개 메소드

public EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void
asyncResult IAsyncResult
readCallback AsyncCallback
receivedStringAction Action
리턴 void

HandleChunks() 보호된 추상적인 메소드

protected abstract HandleChunks ( string receivedString, Action receivedStringAction ) : void
receivedString string
receivedStringAction Action
리턴 void

HandleFirstReceive() 보호된 추상적인 메소드

protected abstract HandleFirstReceive ( MemoryStream ms ) : void
ms System.IO.MemoryStream
리턴 void

StateObject() 보호된 메소드

protected StateObject ( Socket socket ) : System
socket System.Net.Sockets.Socket
리턴 System