|
| Http (enet::Tcp _connection, bool _isServer=false) |
|
bool | getServerState () |
|
bool | isServer () |
|
const enet::HttpRequest & | getRequestHeader () |
|
const enet::HttpAnswer & | getAnswerHeader () |
|
void | start () |
|
void | stop (bool _inThread=false) |
|
bool | isAlive () const |
|
template<class CLASS_TYPE > |
void | connect (CLASS_TYPE *_class, void(CLASS_TYPE::*_func)(std::vector< uint8_t > &)) |
|
void | connect (Observer _func) |
|
template<class CLASS_TYPE > |
void | connectRaw (CLASS_TYPE *_class, void(CLASS_TYPE::*_func)(enet::Tcp &)) |
|
void | connectRaw (ObserverRaw _func) |
|
int32_t | write (const void *_data, int32_t _len) |
|
int32_t | write (const std::string &_data, bool _writeBackSlashZero=true) |
|
template<class T > |
int32_t | write (const std::vector< T > &_data) |
|
§ Observer
Define an Observer: function pointer.
§ ObserverAnswer
Define an Observer: function pointer.
§ ObserverRaw
Define an Observer: function pointer.
§ ObserverRequest
Define an Observer: function pointer.
§ connect()
template<class CLASS_TYPE >
void enet::Http::connect |
( |
CLASS_TYPE * |
_class, |
|
|
void(CLASS_TYPE::*)(std::vector< uint8_t > &) |
_func |
|
) |
| |
|
inline |
Connect an function member on the signal with the shared_ptr object.
- Parameters
-
[in] | _class | shared_ptr Object on whe we need to call ==> the object is get in keeped in weak_ptr. |
[in] | _func | Function to call. |
[in] | _args | Argument optinnal the user want to add. |
§ connectRaw()
template<class CLASS_TYPE >
void enet::Http::connectRaw |
( |
CLASS_TYPE * |
_class, |
|
|
void(CLASS_TYPE::*)(enet::Tcp &) |
_func |
|
) |
| |
|
inline |
Connect an function member on the signal with the shared_ptr object.
- Parameters
-
[in] | _class | shared_ptr Object on whe we need to call ==> the object is get in keeped in weak_ptr. |
[in] | _func | Function to call. |
[in] | _args | Argument optinnal the user want to add. |
§ write() [1/3]
int32_t enet::Http::write |
( |
const void * |
_data, |
|
|
int32_t |
_len |
|
) |
| |
Write a chunk of data on the socket.
- Parameters
-
[in] | _data | pointer on the data might be write |
[in] | _len | Size that must be written socket |
- Returns
- >0 byte size on the socket write
-
-1 an error occured.
§ write() [2/3]
int32_t enet::Http::write |
( |
const std::string & |
_data, |
|
|
bool |
_writeBackSlashZero = true |
|
) |
| |
|
inline |
Write a chunk of data on the socket.
- Parameters
-
[in] | _data | String to rite on the soccket |
[in] | _writeBackSlashZero | if false, the \0 is not write |
- Returns
- >0 byte size on the socket write
-
-1 an error occured.
§ write() [3/3]
template<class T >
int32_t enet::Http::write |
( |
const std::vector< T > & |
_data | ) |
|
|
inline |
Write a chunk of data on the socket.
- Parameters
-
[in] | _data | String to rite on the soccket |
[in] | _writeBackSlashZero | if false, the \0 is not write |
- Returns
- >0 T element write on the socket
-
-1 an error occured.
The documentation for this class was generated from the following file: