|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Sessions
Field Summary | |
---|---|
ClintHeyer.Httpd.Connection | connection |
bool | hasThrottle |
string | id |
bool | invalid |
ClintHeyer.Httpd.ISessionManager | manager |
ClintHeyer.Httpd.Server | server |
long | throttleRate |
long | ticks |
Constructor Summary | |
---|---|
HttpSession(string id, ClintHeyer.Httpd.ISessionManager manager, ClintHeyer.Httpd.Server server, ClintHeyer.Httpd.Connection connection) Constructor |
Property Summary | |
---|---|
bool |
HasThrottle
Gets whether a throttle is applied to session |
string |
Id
Gets the session id |
bool |
IsAlive
Gets whether session is alive |
ClintHeyer.Httpd.Server |
Server
Gets the server |
long |
ThrottleRate
Gets or sets the throttle rate |
long |
TransferRate
Gets the last recorded transfer rate (bytes per second) |
Method Summary | |
---|---|
void |
Close() Closes off any data stream associated with session currently (but does not terminate session |
void |
ConnectionClosed() Called by a connection when it has been closed |
string |
ConnectionDetails() Gets connection details |
void |
End() Closes and ends a session completely |
string |
RemoteHost() Gets the remote host of user |
string |
RemoteIP() Gets the remote IP-address of user |
void |
SendData(byte[] data, int length, long throttle) Sends data to a session |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private ClintHeyer.Httpd.Connection connection
private bool hasThrottle
private string id
private bool invalid
private ClintHeyer.Httpd.ISessionManager manager
private ClintHeyer.Httpd.Server server
private long throttleRate
private long ticks
Constructor Detail |
---|
public HttpSession(string id, ClintHeyer.Httpd.ISessionManager manager, ClintHeyer.Httpd.Server server, ClintHeyer.Httpd.Connection connection)
Constructor
Parameters:
id
- Session idmanager
- Server manager. Can be nullserver
- Serverconnection
- ConnectionProperty Detail |
---|
public bool HasThrottle
Gets whether a throttle is applied to session
public string Id
Gets the session id
public bool IsAlive
Gets whether session is alive
public ClintHeyer.Httpd.Server Server
Gets the server
public long ThrottleRate
Gets or sets the throttle rate
public long TransferRate
Gets the last recorded transfer rate (bytes per second)
Method Detail |
---|
public void Close()
Closes off any data stream associated with session currently (but does not terminate session
internal void ConnectionClosed()
Called by a connection when it has been closed
public string ConnectionDetails()
Gets connection details
Returns:
public void End()
Closes and ends a session completely
public string RemoteHost()
Gets the remote host of user
Returns:
public string RemoteIP()
Gets the remote IP-address of user
Returns:
public void SendData(byte[] data, int length, long throttle)
Sends data to a session
Parameters:
data
- Datalength
- Lengththrottle
- Throttle rate
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |