Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

aiosock_block Class Reference

defines the asynchronous control block for WIN platform More...

#include <aiosock.h>

List of all members.

Public Member Functions

 aiosock_block ()
 default constructor
 aiosock_block (const aiosock_block &x)
 copy constructor
aiosock_blockoperator= (const aiosock_block &x)
 assign operator
void clear ()
 clears resources
void settimeout (size_t timeout)
 sets timeout and expiration date

Public Attributes

aiosock_type _type
 action type
char * _buf
 buffer send/receive
size_t _len
 buffer length
size_t _socket_ident
 socket ident
size_t _processed
 processed data size
int _err
 error result
void * _userdata
 user defined data
size_t _accept_ident
 accepted socket ident
size_t _flags
 flags for keeping
ub1_t _accept_buf [2 *(sizeof(struct sockaddr_in)+16)]
 memory for accept addresses
sockaddr_in _address
 address to connect/recv/send
size_t _timeout
 timeout in milliseconds
sb8_t _expired
 expiration date


Detailed Description

defines the asynchronous control block for WIN platform

Definition at line 46 of file aiosock.h.


Constructor & Destructor Documentation

aiosock_block::aiosock_block (  ) 

default constructor

Definition at line 226 of file aiosock.cpp.

References clear().

aiosock_block::aiosock_block ( const aiosock_block x  ) 

copy constructor

Definition at line 231 of file aiosock.cpp.


Member Function Documentation

aiosock_block & aiosock_block::operator= ( const aiosock_block x  ) 

assign operator

Definition at line 237 of file aiosock.cpp.

void aiosock_block::clear (  ) 

clears resources

Definition at line 248 of file aiosock.cpp.

Referenced by aiosock_block().

void aiosock_block::settimeout ( size_t  timeout  ) 

sets timeout and expiration date

Parameters:
timeout  timeout in milliseconds

Definition at line 254 of file aiosock.cpp.

References _expired, and _timeout.

Referenced by aiosock::connect(), aiosock::process_accept_blocks(), aiosock::receive(), and aiosock::send().


Member Data Documentation

accepted socket ident

Definition at line 72 of file aiosock.h.

Referenced by aiosock::_process_accept(), aiosock::_process_recv(), and aiosock::v_do_job().

flags for keeping

Definition at line 73 of file aiosock.h.

Referenced by aiosock::_process_recv().

ub1_t aiosock_block::_accept_buf[2 *(sizeof(struct sockaddr_in)+16)]

memory for accept addresses

Definition at line 74 of file aiosock.h.

Referenced by aiosock::_process_accept().

timeout in milliseconds

Definition at line 81 of file aiosock.h.

Referenced by aiosock::_process_connect(), aiosock::_process_recv(), aiosock::_process_send(), and settimeout().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.