Method | Description | |
---|---|---|
ConditionsCheckAndDataFill ( Request e ) : bool |
Override this, check the URL and process data if needed
|
|
Dispose ( ) : void | ||
Response ( string Name ) : System |
Creates response to send back to client
|
|
SendResponse ( Request e ) : bool |
Override this method to implement a response logic.
|
Method | Description | |
---|---|---|
MimeType ( string Filename ) : string |
Converts fileending into mime-type
|
|
Send200_OK ( string MimeType, int ContentLength, |
Creates header for 200 OK response
|
|
Send404_NotFound ( |
Sends a 404 Not Found response
|
|
SendData ( |
Sends data to the client
|
|
SocketConnected ( |
Checks if socket is still connected
|
public abstract ConditionsCheckAndDataFill ( Request e ) : bool | ||
e | Request | |
return | bool |
protected MimeType ( string Filename ) : string | ||
Filename | string | File name or complete file path |
return | string |
protected Send200_OK ( string MimeType, int ContentLength, |
||
MimeType | string | MIME type of response |
ContentLength | int | Byte count of response body /// The Socket connected with the client |
Client | ||
return | void |
protected Send404_NotFound ( |
||
Client | ||
return | void |
protected SendData ( |
||
client | Socket connected with the client | |
data | byte | Byte-array to be transmitted |
return | int |
public abstract SendResponse ( Request e ) : bool | ||
e | Request | |
return | bool |
protected SocketConnected ( |
||
s | Socket that should be checked | |
return | bool |