/home/vlg/develop/libASSA/libassa/assa/Socket.h File Reference

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"

Include dependency graph for Socket.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ASSA

Classes

class  ASSA::Socket

Defines

#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.
#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.

Functions

Socket & ASSA::flush (Socket &os_)
 flush manipulator.
Socket & ASSA::endl (Socket &os_)
 endl manipulator.
Socket & ASSA::ends (Socket &os_)
 ends manipulator.


Detailed Description

Abstraction of socket data type.

This will be a subclass of instream

Definition in file Socket.h.


Define Documentation

#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.

Definition at line 59 of file Socket.h.

#define BYTES_LEFT_IN_SOCKBUF  )     ((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.

Parameters:
s Reference to ASSA::Socket

Definition at line 52 of file Socket.h.


Generated on Sun Aug 13 15:08:15 2006 for libassa by  doxygen 1.4.6