C# Class System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler

Inheritance: SocketHandler
Mostrar archivo Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
TcpSocketHandler ( Socket socket, RequestQueue requestQueue, Stream stream ) : System
TcpSocketHandler ( Socket socket, Stream stream ) : System

Protected Methods

Method Description
ReadContentLength ( bool &chunked, int &contentLength ) : void
ReadCountedString ( ) : String
ReadToEndOfHeaders ( BaseTransportHeaders headers ) : void
ReadVersionAndOperation ( UInt16 &operation ) : void
WriteCountedString ( String str, Stream outputStream ) : void
WriteHeaders ( ITransportHeaders headers, Stream outputStream ) : void
WritePreambleAndVersion ( Stream outputStream ) : void

Private Methods

Method Description
ReadAndMatchPreamble ( ) : void
ReadAndVerifyHeaderFormat ( String headerName, byte expectedFormat ) : void
WriteContentTypeHeader ( String value, Stream outputStream ) : void
WriteCustomHeader ( String name, String value, Stream outputStream ) : void

Method Details

ReadContentLength() protected method

protected ReadContentLength ( bool &chunked, int &contentLength ) : void
chunked bool
contentLength int
return void

ReadCountedString() protected method

protected ReadCountedString ( ) : String
return String

ReadToEndOfHeaders() protected method

protected ReadToEndOfHeaders ( BaseTransportHeaders headers ) : void
headers BaseTransportHeaders
return void

ReadVersionAndOperation() protected method

protected ReadVersionAndOperation ( UInt16 &operation ) : void
operation System.UInt16
return void

TcpSocketHandler() public method

public TcpSocketHandler ( Socket socket, RequestQueue requestQueue, Stream stream ) : System
socket Socket
requestQueue RequestQueue
stream Stream
return System

TcpSocketHandler() public method

public TcpSocketHandler ( Socket socket, Stream stream ) : System
socket Socket
stream Stream
return System

WriteCountedString() protected method

protected WriteCountedString ( String str, Stream outputStream ) : void
str String
outputStream Stream
return void

WriteHeaders() protected method

protected WriteHeaders ( ITransportHeaders headers, Stream outputStream ) : void
headers ITransportHeaders
outputStream Stream
return void

WritePreambleAndVersion() protected method

protected WritePreambleAndVersion ( Stream outputStream ) : void
outputStream Stream
return void