enet Namespace Reference

Classes

class  Ftp
 
class  Http
 
class  HttpAnswer
 
class  HttpClient
 
class  HttpHeader
 
class  HttpRequest
 
class  HttpServer
 
class  Tcp
 
class  TcpServer
 
class  Udp
 
class  WebSocket
 

Enumerations

enum  HTTPAnswerCode {
  c000_unknow = 0, HTTPAnswerCode::c100_continue = 100, HTTPAnswerCode::c101_switchingProtocols, HTTPAnswerCode::c103_checkpoint,
  HTTPAnswerCode::c200_ok = 200, HTTPAnswerCode::c201_created, HTTPAnswerCode::c202_accepted, HTTPAnswerCode::c203_nonAuthoritativeInformation,
  HTTPAnswerCode::c204_noContent, HTTPAnswerCode::c205_resetContent, HTTPAnswerCode::c206_partialContent, HTTPAnswerCode::c300_multipleChoices = 300,
  HTTPAnswerCode::c301_movedPermanently, HTTPAnswerCode::c302_found, HTTPAnswerCode::c303_seeOther, HTTPAnswerCode::c304_notModified,
  HTTPAnswerCode::c306_switchProxy, HTTPAnswerCode::c307_temporaryRedirect, HTTPAnswerCode::c308_resumeIncomplete, HTTPAnswerCode::c400_badRequest = 400,
  HTTPAnswerCode::c401_unauthorized, HTTPAnswerCode::c402_paymentRequired, HTTPAnswerCode::c403_forbidden, HTTPAnswerCode::c404_notFound,
  HTTPAnswerCode::c405_methodNotAllowed, HTTPAnswerCode::c406_notAcceptable, HTTPAnswerCode::c407_proxyAuthenticationRequired, HTTPAnswerCode::c408_requestTimeout,
  HTTPAnswerCode::c409_conflict, HTTPAnswerCode::c410_gone, HTTPAnswerCode::c411_lengthRequired, HTTPAnswerCode::c412_preconditionFailed,
  HTTPAnswerCode::c413_requestEntityTooLarge, HTTPAnswerCode::c414_requestURITooLong, HTTPAnswerCode::c415_unsupportedMediaType, HTTPAnswerCode::c416_requestedRangeNotSatisfiable,
  HTTPAnswerCode::c417_expectationFailed, HTTPAnswerCode::c500_internalServerError = 500, HTTPAnswerCode::c501_notImplemented, HTTPAnswerCode::c502_badGateway,
  HTTPAnswerCode::c503_serviceUnavailable, HTTPAnswerCode::c504_gatewayTimeout, HTTPAnswerCode::c505_httpVersionNotSupported, HTTPAnswerCode::c511_networkAuthenticationRequired
}
 
enum  HTTPProtocol {
  http_0_1, http_0_2, http_0_3, http_0_4,
  http_0_5, http_0_6, http_0_7, http_0_8,
  http_0_9, http_0_10, http_1_0, http_1_1,
  http_1_2, http_1_3, http_1_4, http_1_5,
  http_1_6, http_1_7, http_1_8, http_1_9,
  http_1_10, http_2_0, http_2_1, http_2_2,
  http_2_3, http_2_4, http_2_5, http_2_6,
  http_2_7, http_2_8, http_2_9, http_2_10,
  http_3_0, http_3_1, http_3_2, http_3_3,
  http_3_4, http_3_5, http_3_6, http_3_7,
  http_3_8, http_3_9, http_3_10
}
 
enum  HTTPReqType {
  HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT,
  HTTP_DELETE
}
 

Functions

void init (int _argc, const char **_argv)
 
void unInit ()
 
bool isInit ()
 
enet::Tcp connectTcpClient (uint8_t _ip1, uint8_t _ip2, uint8_t _ip3, uint8_t _ip4, uint16_t _port, uint32_t _numberRetry=5)
 
enet::Tcp connectTcpClient (const std::string &_hostname, uint16_t _port, uint32_t _numberRetry=5)
 

Detailed Description

Main esvg namespace.

Enumeration Type Documentation

§ HTTPAnswerCode

enum enet::HTTPAnswerCode
strong
Enumerator
c100_continue 

The server has received the request headers, and the client should proceed to send the request body.

c101_switchingProtocols 

The requester has asked the server to switch protocols.

c103_checkpoint 

Used in the resumable requests proposal to resume aborted PUT or POST requests.

c200_ok 

The request is OK (this is the standard response for successful HTTP requests)

c201_created 

The request has been fulfilled, and a new resource is created.

c202_accepted 

The request has been accepted for processing, but the processing has not been completed.

c203_nonAuthoritativeInformation 

The request has been successfully processed, but is returning information that may be from another source.

c204_noContent 

The request has been successfully processed, but is not returning any content.

c205_resetContent 

The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view.

c206_partialContent 

The server is delivering only part of the resource due to a range header sent by the client.

c300_multipleChoices 

A link list. The user can select a link and go to that location. Maximum five addresses.

c301_movedPermanently 

The requested page has moved to a new URL.

c302_found 

The requested page has moved temporarily to a new URL.

c303_seeOther 

The requested page can be found under a different URL.

c304_notModified 

Indicates the requested page has not been modified since last requested.

c306_switchProxy 

No longer used.

c307_temporaryRedirect 

The requested page has moved temporarily to a new URL.

c308_resumeIncomplete 

Used in the resumable requests proposal to resume aborted PUT or POST requests.

c400_badRequest 

The request cannot be fulfilled due to bad syntax.

c401_unauthorized 

The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided.

c402_paymentRequired 

Reserved for future use.

c403_forbidden 

The request was a legal request, but the server is refusing to respond to it.

c404_notFound 

The requested page could not be found but may be available again in the future.

c405_methodNotAllowed 

A request was made of a page using a request method not supported by that page.

c406_notAcceptable 

The server can only generate a response that is not accepted by the client.

c407_proxyAuthenticationRequired 

The client must first authenticate itself with the proxy.

c408_requestTimeout 

The server timed out waiting for the request.

c409_conflict 

The request could not be completed because of a conflict in the request.

c410_gone 

The requested page is no longer available.

c411_lengthRequired 

The "Content-Length" is not defined. The server will not accept the request without it.

c412_preconditionFailed 

The precondition given in the request evaluated to false by the server.

c413_requestEntityTooLarge 

The server will not accept the request, because the request entity is too large.

c414_requestURITooLong 

The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information.

c415_unsupportedMediaType 

The server will not accept the request, because the media type is not supported.

c416_requestedRangeNotSatisfiable 

The client has asked for a portion of the file, but the server cannot supply that portion.

c417_expectationFailed 

The server cannot meet the requirements of the Expect request-header field.

c500_internalServerError 

A generic error message, given when no more specific message is suitable.

c501_notImplemented 

The server either does not recognize the request method, or it lacks the ability to fulfill the request.

c502_badGateway 

The server was acting as a gateway or proxy and received an invalid response from the upstream server.

c503_serviceUnavailable 

The server is currently unavailable (overloaded or down)

c504_gatewayTimeout 

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

c505_httpVersionNotSupported 

The server does not support the HTTP protocol version used in the request.

c511_networkAuthenticationRequired 

The client needs to authenticate to gain network access.

Function Documentation

§ init()

void enet::init ( int  _argc,
const char **  _argv 
)

Initialize enet.

Parameters
[in]_argcNumber of argument list
[in]_argvList of arguments

§ isInit()

bool enet::isInit ( )

Check if the library is initialized.

Returns
bool value to chek if initialize ot not

§ unInit()

void enet::unInit ( )

un-Initialize enet