|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Connection is an abstracted socket-communication interface.
Property Summary | |
---|---|
ClintHeyer.Httpd.HttpSession |
Session
Gets the session for connection |
long |
TransferRate
Gets the last recorded transfer speed (bytes per second) |
Method Summary | |
---|---|
void |
Close() Close the connection |
bool |
IsAlive() Manually checks if a connection is still alive. If not, initiates close procedure |
bool |
IsClosed() Is the connection closed? |
bool |
IsExpired() Checks whether connection has expired. If so, triggers closed procedures |
string |
RemoteHostname() Get the remote hostname |
string |
RemoteIP() Get the remote IP address |
void |
SendData(byte[] data, int length, long throttleRate) Sends binary data |
void |
SetSession(ClintHeyer.Httpd.HttpSession session) Sets the session for this connection |
string |
ToBasicString() Gets a basic string representation of connection |
Property Detail |
---|
public ClintHeyer.Httpd.HttpSession Session
Gets the session for connection
public long TransferRate
Gets the last recorded transfer speed (bytes per second)
Method Detail |
---|
public void Close()
Close the connection
public bool IsAlive()
Manually checks if a connection is still alive. If not, initiates close procedure
Returns:
public bool IsClosed()
Is the connection closed?
Returns:
public bool IsExpired()
Checks whether connection has expired. If so, triggers closed procedures
Returns:
public string RemoteHostname()
Get the remote hostname
Returns:
public string RemoteIP()
Get the remote IP address
Returns:
public void SendData(byte[] data, int length, long throttleRate)
Sends binary data
Parameters:
data
- Datalength
- How much of array to sendthrottleRate
- Throttling rate, or less than zero for no throttlingpublic void SetSession(ClintHeyer.Httpd.HttpSession session)
Sets the session for this connection
Parameters:
session
- Sessionpublic string ToBasicString()
Gets a basic string representation of connection
Returns:
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |