Property | Type | Description | |
---|---|---|---|
id | int |
Property | Type | Description | |
---|---|---|---|
LowLevelSocket | Socket |
Method | Description | |
---|---|---|
CloseSocket ( ) : void |
Close the internal socket
|
|
Dispose ( ) : void |
Close the wrapped socket
|
|
HttpSocket ( Socket socket ) : System |
Wrap a Socket instance into a HttpSocket instance
|
|
IsSocketDead ( ) : bool |
Returns true if the socket has been closed, or has become unresponsive
|
|
ReadAsciiLine ( ) : string |
Reads a LF-delimited (or CRLF-delimited) line from the socket, and returns it (without the trailing newline character)
|
|
ReadBinary ( ) : uint |
Read buffered binary data A read operation (for instance, ReadAsciiLine) may have loaded the buffer with some data which ended up not being used. If that's the case, then ReadBinary uses it (ReadRaw does not). |
|
Send302 ( ) : void |
Send a HTTP 302 redirection over the socket
|
|
Send400 ( ) : void |
Send a HTTP 400 error over the socket
|
|
Send403 ( ) : void |
Send a HTTP 403 error over the socket
|
|
Send404 ( ) : void |
Send a HTTP 404 error over the socket
|
|
Send501 ( ) : void |
Send a HTTP 501 error over the socket
|
|
TunnelChunkedDataTo ( HttpSocket dest ) : void |
Tunnel a HTTP-chunked blob of data The tunneling stops when the last chunk, identified by a size of 0, arrives. The optional trailing entities are also transmitted (but otherwise ignored). |
|
TunnelChunkedDataTo ( MessagePacketHandler mph ) : void |
Tunnel a HTTP-chunked blob of data to the specified packet handler The tunneling stops when the last chunk, identified by a size of 0, arrives. The optional trailing entities are also transmitted (but otherwise ignored). |
|
TunnelDataTo ( HttpSocket dest ) : uint |
Transfer data from this socket to the destination socket until this socket closes
|
|
TunnelDataTo ( HttpSocket dest, uint nb_bytes ) : uint |
Read
|
|
TunnelDataTo ( MessagePacketHandler mph ) : uint |
Transfer data from the socket to the specified packet handler until the socket closes
|
|
TunnelDataTo ( MessagePacketHandler mph, byte buffer ) : uint |
Sends a buffer to the specified packet handler
|
|
TunnelDataTo ( MessagePacketHandler mph, uint nb_bytes ) : uint |
Read
|
|
TunnelDataTo ( byte &buffer ) : uint |
Fills the buffer with an unknown amount of data from the socket
|
|
TunnelDataTo ( byte buffer, uint byte_count ) : uint |
Write data from a buffer to the socket
|
|
WriteAsciiLine ( string s ) : uint |
Write an ASCII string, a CR character, and a LF character to the socket
|
|
WriteBinary ( byte b ) : uint |
Write an array of bytes to the socket
|
|
WriteBinary ( byte b, uint nb_bytes ) : uint |
Write the first
|
|
WriteBinary ( byte b, uint offset, uint nb_bytes ) : uint |
Write
|
Method | Description | |
---|---|---|
ReadRaw ( ) : uint |
Read a block of data from the socket; unread data that was in the buffer is dropped BufferPosition is reset. If there were unread data in the buffer, it's lost. |
Method | Description | |
---|---|---|
SendHttpError ( string ErrorCodeAndReason ) : void | ||
Trace ( string msg ) : void | ||
TunnelChunkedDataTo ( HttpSocket dest, MessagePacketHandler mph ) : void |
public TunnelChunkedDataTo ( HttpSocket dest ) : void | ||
dest | HttpSocket | The destination socket |
return | void |
public TunnelChunkedDataTo ( MessagePacketHandler mph ) : void | ||
mph | MessagePacketHandler | |
return | void |
public TunnelDataTo ( HttpSocket dest ) : uint | ||
dest | HttpSocket | |
return | uint |
public TunnelDataTo ( HttpSocket dest, uint nb_bytes ) : uint | ||
dest | HttpSocket | |
nb_bytes | uint | |
return | uint |
public TunnelDataTo ( MessagePacketHandler mph ) : uint | ||
mph | MessagePacketHandler | |
return | uint |
public TunnelDataTo ( MessagePacketHandler mph, byte buffer ) : uint | ||
mph | MessagePacketHandler | |
buffer | byte | |
return | uint |
public TunnelDataTo ( MessagePacketHandler mph, uint nb_bytes ) : uint | ||
mph | MessagePacketHandler | |
nb_bytes | uint | |
return | uint |
public TunnelDataTo ( byte &buffer ) : uint | ||
buffer | byte | data from the socket |
return | uint |
public TunnelDataTo ( byte buffer, uint byte_count ) : uint | ||
buffer | byte | |
byte_count | uint | |
return | uint |
public WriteBinary ( byte b, uint nb_bytes ) : uint | ||
b | byte | |
nb_bytes | uint | |
return | uint |
public WriteBinary ( byte b, uint offset, uint nb_bytes ) : uint | ||
b | byte | |
offset | uint | |
nb_bytes | uint | |
return | uint |