libassa
3.5.1
|
Abstraction of socket data type. More...
#include <sys/stat.h>
#include <sys/time.h>
#include <limits.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include "assa/Address.h"
#include "assa/Streambuf.h"
Go to the source code of this file.
Classes | |
class | ASSA::Socket |
Namespaces | |
ASSA | |
Macros | |
#define | BYTES_LEFT_IN_SOCKBUF(s) ((s).eof () ? -1 : (s).in_avail ()) |
BYTES_LEFT_IN_SOCKBUF macro returns number of unprocessed bytes left in ASSA's double-buffer from EventHandler::handle_read() callback. More... | |
#define | BYTES_LEFT_IN_SIN (cin.eof () ? -1 : cin.rdbuf ()->in_avail ()) |
BYTES_LEFT_IN_SIN macro returns number of unprocessed bytes left in cin internal buffer. More... | |
Functions | |
Socket & | ASSA::flush (Socket &os_) |
flush manipulator. More... | |
Socket & | ASSA::endl (Socket &os_) |
endl manipulator. More... | |
Socket & | ASSA::ends (Socket &os_) |
ends manipulator. More... | |
#define BYTES_LEFT_IN_SIN (cin.eof () ? -1 : cin.rdbuf ()->in_avail ()) |
#define BYTES_LEFT_IN_SOCKBUF | ( | s | ) | ((s).eof () ? -1 : (s).in_avail ()) |
BYTES_LEFT_IN_SOCKBUF macro returns number of unprocessed bytes left in ASSA's double-buffer from EventHandler::handle_read() callback.
Unless for a valid reason, this macro should always be called.
s | Reference to ASSA::Socket |