C# Class System.Runtime.Remoting.Channels.SocketHandler

Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Protected Properties

Property Type Description
NetSocket Socket
NetStream Stream

Public Methods

Method Description
BeginReadMessage ( ) : void
BeginReadMessageCallback ( IAsyncResult ar ) : void
Close ( ) : void
OnInputStreamClosed ( ) : void
RaceForControl ( ) : bool
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
ReadInt32 ( ) : int
ReadToEndOfLine ( ) : String
ReadUInt16 ( ) : UInt16
ReleaseControl ( ) : void
SocketHandler ( Socket socket, Stream netStream ) : System
WriteByte ( byte value, Stream outputStream ) : void
WriteInt32 ( int value, Stream outputStream ) : void
WriteUInt16 ( UInt16 value, Stream outputStream ) : void

Protected Methods

Method Description
PrepareForNewMessage ( ) : void
ReadAndMatchFourBytes ( byte buffer ) : bool
ReadToByte ( byte b ) : byte[]
ReadToByte ( byte b, ValidateByteDelegate validator ) : byte[]
ReadToChar ( char ch ) : String
ReadToChar ( char ch, ValidateByteDelegate validator ) : String
SendErrorMessageIfPossible ( Exception e ) : void

Private Methods

Method Description
BufferMoreData ( ) : int
CloseOnFatalError ( Exception e ) : void
CustomErrorsEnabled ( ) : bool
IsLocal ( ) : bool
IsLocalhost ( ) : bool
ProcessRequestNow ( ) : void
ReadFromSocket ( byte buffer, int offset, int count ) : int
RejectRequestNowSinceServerIsBusy ( ) : void
SocketHandler ( ) : System
SocketHandler ( Socket socket, RequestQueue requestQueue, Stream netStream ) : System

Method Details

BeginReadMessage() public method

public BeginReadMessage ( ) : void
return void

BeginReadMessageCallback() public method

public BeginReadMessageCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Close() public method

public Close ( ) : void
return void

OnInputStreamClosed() public method

public OnInputStreamClosed ( ) : void
return void

PrepareForNewMessage() protected abstract method

protected abstract PrepareForNewMessage ( ) : void
return void

RaceForControl() public method

public RaceForControl ( ) : bool
return bool

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAndMatchFourBytes() protected method

protected ReadAndMatchFourBytes ( byte buffer ) : bool
buffer byte
return bool

ReadByte() public method

public ReadByte ( ) : int
return int

ReadInt32() public method

public ReadInt32 ( ) : int
return int

ReadToByte() protected method

protected ReadToByte ( byte b ) : byte[]
b byte
return byte[]

ReadToByte() protected method

protected ReadToByte ( byte b, ValidateByteDelegate validator ) : byte[]
b byte
validator ValidateByteDelegate
return byte[]

ReadToChar() protected method

protected ReadToChar ( char ch ) : String
ch char
return String

ReadToChar() protected method

protected ReadToChar ( char ch, ValidateByteDelegate validator ) : String
ch char
validator ValidateByteDelegate
return String

ReadToEndOfLine() public method

public ReadToEndOfLine ( ) : String
return String

ReadUInt16() public method

public ReadUInt16 ( ) : UInt16
return System.UInt16

ReleaseControl() public method

public ReleaseControl ( ) : void
return void

SendErrorMessageIfPossible() protected method

protected SendErrorMessageIfPossible ( Exception e ) : void
e System.Exception
return void

SocketHandler() public method

public SocketHandler ( Socket socket, Stream netStream ) : System
socket Socket
netStream Stream
return System

WriteByte() public method

public WriteByte ( byte value, Stream outputStream ) : void
value byte
outputStream Stream
return void

WriteInt32() public method

public WriteInt32 ( int value, Stream outputStream ) : void
value int
outputStream Stream
return void

WriteUInt16() public method

public WriteUInt16 ( UInt16 value, Stream outputStream ) : void
value System.UInt16
outputStream Stream
return void

Property Details

NetSocket protected_oe property

protected Socket NetSocket
return Socket

NetStream protected_oe property

protected Stream NetStream
return Stream