|
| connexion (int fd, const std::string &peerip, unsigned int peerport) |
| constructor: create a new object based on a existing socket filedescriptor
|
|
| connexion (const connexion &ref)=delete |
| forbidding copy constuctor and assignment operator
|
|
| connexion (connexion &&ref) noexcept=delete |
|
connexion & | operator= (const connexion &ref)=delete |
|
connexion & | operator= (connexion &&ref) noexcept=delete |
|
| ~connexion () |
| destructor
|
|
| proto_connexion (const std::string &peerip, unsigned int peerport) |
| constructor
|
|
| proto_connexion (const proto_connexion &ref)=delete |
| forbidding copy constuctor and assignment operator
|
|
| proto_connexion (proto_connexion &&ref) noexcept=delete |
|
proto_connexion & | operator= (const proto_connexion &ref)=delete |
|
proto_connexion & | operator= (proto_connexion &&ref) noexcept=delete |
|
virtual | ~proto_connexion () |
| destructor
|
|
status | get_status () const |
|
const std::string & | get_ip () const |
|
unsigned int | get_port () const |
|
char | read_one (bool blocking) |
| extracts one byte form the buffer / exception thrown if not available
|
|
char | read_test_first (bool blocking) |
|
char | read_test_second (bool blocking) |
|
void | write (const char *a, unsigned int size) |
| write data More...
|
|
void | flush_write () |
| flush pending writings if any
|
|
|
virtual void | write_impl (const char *a, unsigned int size) override |
| inherited from proto_connexion More...
|
|
virtual unsigned int | read_impl (char *a, unsigned int size, bool blocking) override |
| inherited from proto_connexion More...
|
|
virtual void | write_impl (const char *a, unsigned int size)=0 |
| implementation of the low level (without buffering) writing operation More...
|
|
virtual unsigned int | read_impl (char *a, unsigned int size, bool blocking)=0 |
| implementation of the low level (without buffering) reading operation More...
|
|
void | set_status (status st) |
| let inherited class modifying the object status
|
|
provides read/write implementation of a socket object
- Note
- used for http connections (non ssl/tls connections)