|
Classes |
| struct | If_Then_Else< true, Ta, Tb > |
| struct | If_Then_Else< false, Ta, Tb > |
Namespaces |
| namespace | String_Conversion |
I/O operations |
| Notes on common parameters:
handle is the connected endpoint that will be used for I/O.
buf is the buffer to write from or receive into.
len is the number of bytes to transfer.
The timeout parameter in the following methods indicates how long to blocking trying to transfer data. If timeout == 0, then the call behaves as a normal send/recv call, i.e., for blocking sockets, the call will block until action is possible; for non-blocking sockets, EWOULDBLOCK will be returned if no action is immediately possible.
If timeout != 0, the call will wait until the relative time specified in *timeout elapses.
The "_n()" I/O methods keep looping until all the data has been transferred. These methods also work for sockets in non-blocking mode i.e., they keep looping on EWOULDBLOCK. timeout is used to make sure we keep making progress, i.e., the same timeout value is used for every I/O operation in the loop and the timeout is not counted down.
The return values for the "*_n()" methods match the return values from the non "_n()" methods and are specified as follows:
- On complete transfer, the number of bytes transferred is returned.
- On timeout, -1 is returned,
errno == ETIME. - On error, -1 is returned,
errno is set to appropriate error. - On
EOF, 0 is returned, errno is irrelevant.
On partial transfers, i.e., if any data is transferred before timeout / error / EOF, bytes_transferred> will contain the number of bytes transferred.
Methods with iovec parameter are I/O vector variants of the I/O operations.
Methods with the extra flags argument will always result in send getting called. Methods without the extra flags argument will result in send getting called on Win32 platforms, and write getting called on non-Win32 platforms.
|
| ssize_t | recv (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout) |
| ssize_t | t_rcv (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout) |
| ssize_t | recv (ACE_HANDLE handle, void *buf, size_t n, const ACE_Time_Value *timeout) |
| ssize_t | recvmsg (ACE_HANDLE handle, struct msghdr *msg, int flags, const ACE_Time_Value *timeout) |
| ssize_t | recvfrom (ACE_HANDLE handle, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen, const ACE_Time_Value *timeout) |
| ssize_t | recv (ACE_HANDLE handle, size_t n,...) |
| | Receive into a variable number of pieces.
|
| ssize_t | recvv (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout) |
| ssize_t | recv_n (ACE_HANDLE handle, ACE_Message_Block *message_block, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | send (ACE_HANDLE handle, const void *buf, size_t n, int flags, const ACE_Time_Value *timeout) |
| ssize_t | t_snd (ACE_HANDLE handle, const void *buf, size_t n, int flags, const ACE_Time_Value *timeout) |
| ssize_t | send (ACE_HANDLE handle, const void *buf, size_t n, const ACE_Time_Value *timeout) |
| ssize_t | sendmsg (ACE_HANDLE handle, const struct msghdr *msg, int flags, const ACE_Time_Value *timeout) |
| ssize_t | sendto (ACE_HANDLE handle, const char *buf, int len, int flags, const struct sockaddr *addr, int addrlen, const ACE_Time_Value *timeout) |
| ssize_t | send (ACE_HANDLE handle, size_t n,...) |
| | Varargs variant.
|
| ssize_t | sendv (ACE_HANDLE handle, const iovec *iov, int iovcnt, const ACE_Time_Value *timeout) |
| ssize_t | write_n (ACE_HANDLE handle, const ACE_Message_Block *message_block, size_t *bt) |
| ssize_t | send_n (ACE_HANDLE handle, const ACE_Message_Block *message_block, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | readv_n (ACE_HANDLE handle, iovec *iov, int iovcnt, size_t *bt) |
| ssize_t | writev_n (ACE_HANDLE handle, const iovec *i, int iovcnt, size_t *bt) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | recv_n (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | t_rcv_n (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | recv_n (ACE_HANDLE handle, void *buf, size_t len, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | recvv_n (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | send_n (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | t_snd_n (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | send_n (ACE_HANDLE handle, const void *buf, size_t len, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | sendv_n (ACE_HANDLE handle, const iovec *iov, int iovcnt, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | read_n (ACE_HANDLE handle, void *buf, size_t len, size_t *bytes_transferred=0) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | write_n (ACE_HANDLE handle, const void *buf, size_t len, size_t *bytes_transferred=0) |
Functions |
| int | out_of_handles (int error) |
| u_int | major_version (void) |
| | e.g., the "5" in ACE 5.1.12.
|
| u_int | minor_version (void) |
| | e.g., the "1" in ACE 5.1.12.
|
| u_int | beta_version (void) |
| const ACE_TCHAR * | compiler_name (void) |
| | E.g., the "SunPro C++" in SunPro C++ 4.32.0.
|
| u_int | compiler_major_version (void) |
| | E.g., the "4" in SunPro C++ 4.32.0.
|
| u_int | compiler_minor_version (void) |
| | E.g., the "32" in SunPro C++ 4.32.0.
|
| u_int | compiler_beta_version (void) |
| | E.g., the "0" in SunPro C++ 4.32.0.
|
| char | debug (void) |
| void | debug (char c) |
| int | select (int width, ACE_Handle_Set *readfds, ACE_Handle_Set *writefds=0, ACE_Handle_Set *exceptfds=0, const ACE_Time_Value *timeout=0) |
| | Wrapper facade for select that uses ACE_Handle_Sets.
|
| int | select (int width, ACE_Handle_Set &readfds, const ACE_Time_Value *timeout) |
| int | terminate_process (pid_t pid) |
| int | process_active (pid_t pid) |
| const ACE_TCHAR * | execname (const ACE_TCHAR *old_name) |
| u_long | hash_pjw (const char *str, size_t len) |
| | Computes the hash value of <str> using the "Hash PJW" routine.
|
| u_long | hash_pjw (const char *str) |
| | Computes the hash value of <str> using the "Hash PJW" routine.
|
| u_long | hash_pjw (const wchar_t *str, size_t len) |
| | Computes the hash value of <str> using the "Hash PJW" routine.
|
| u_long | hash_pjw (const wchar_t *str) |
| | Computes the hash value of <str> using the "Hash PJW" routine.
|
| ACE_TCHAR * | strenvdup (const ACE_TCHAR *str) |
| const ACE_TCHAR * | basename (const ACE_TCHAR *pathname, ACE_TCHAR delim) |
| const ACE_TCHAR * | dirname (const ACE_TCHAR *pathname, ACE_TCHAR delim) |
| ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, int flags, size_t *bt) |
| ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | t_rcv_n_i (ACE_HANDLE handle, void *buf, size_t len, int *flags, size_t *bt) |
| ssize_t | t_rcv_n_i (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, size_t *bt) |
| ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | recvv_n_i (ACE_HANDLE handle, iovec *iov, int iovcnt, size_t *bt) |
| ssize_t | recvv_n_i (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, size_t *bt) |
| ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | t_snd_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, size_t *bt) |
| ssize_t | t_snd_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, size_t *bt) |
| ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bt) |
| ssize_t | sendv_n_i (ACE_HANDLE handle, const iovec *i, int iovcnt, size_t *bt) |
| ssize_t | sendv_n_i (ACE_HANDLE handle, const iovec *i, int iovcnt, const ACE_Time_Value *timeout, size_t *bt) |
| int | handle_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout, int read_ready, int write_ready, int exception_ready) |
| | Timed wait for handle to get read, write, or exception ready.
|
| int | enter_recv_timedwait (ACE_HANDLE handle, const ACE_Time_Value *timeout, int &val) |
| int | enter_send_timedwait (ACE_HANDLE handle, const ACE_Time_Value *timeout, int &val) |
| void | record_and_set_non_blocking_mode (ACE_HANDLE handle, int &val) |
| void | restore_non_blocking_mode (ACE_HANDLE handle, int val) |
| size_t | format_hexdump (const char *buffer, size_t size, ACE_TCHAR *obuf, size_t obuf_sz) |
| ACE_TCHAR * | timestamp (ACE_TCHAR date_and_time[], int date_and_timelen, int return_pointer_to_first_digit) |
| size_t | round_to_pagesize (off_t length) |
| | Rounds the request to a multiple of the page size.
|
| size_t | round_to_allocation_granularity (off_t len) |
| | Rounds the request to a multiple of the allocation granularity.
|
| ACE_HANDLE | handle_timed_complete (ACE_HANDLE h, const ACE_Time_Value *timeout, int is_tli) |
| int | handle_timed_accept (ACE_HANDLE listener, ACE_Time_Value *timeout, int restart) |
| int | daemonize (const ACE_TCHAR pathname[], int close_all_handles, const ACE_TCHAR program_name[]) |
| pid_t | fork (const ACE_TCHAR *program_name, int avoid_zombies) |
| int | max_handles (void) |
| int | set_handle_limit (int new_limit, int increase_limit_only) |
| int | map_errno (int error) |
| u_long | gcd (u_long x, u_long y) |
| | Euclid's greatest common divisor algorithm.
|
| u_long | minimum_frame_size (u_long period1, u_long period2) |
| | Calculates the minimum enclosing frame size for the given values.
|
| u_long | is_prime (const u_long n, const u_long min_factor, const u_long max_factor) |
| const ACE_TCHAR * | sock_error (int error) |
| bool | is_sock_error (int error) |
| char * | strndup (const char *str, size_t n) |
| wchar_t * | strndup (const wchar_t *str, size_t n) |
| char * | strnnew (const char *str, size_t n) |
| wchar_t * | strnnew (const wchar_t *str, size_t n) |
| const char * | strend (const char *s) |
| const wchar_t * | strend (const wchar_t *s) |
| char * | strnew (const char *s) |
| wchar_t * | strnew (const wchar_t *s) |
| void | strdelete (char *s) |
| | Delete the memory allocated by strnew.
|
| void | strdelete (wchar_t *s) |
| bool | wild_match (const char *str, const char *pat, bool case_sensitive) |
| ACE_Export ACE_UINT16 | crc_ccitt (const char *str) |
| | Computes CRC-CCITT for the string.
|
| ACE_Export ACE_UINT16 | crc_ccitt (const void *buf, size_t len, ACE_UINT16 crc=0) |
| | Computes CRC-CCITT for the buffer.
|
| ACE_Export ACE_UINT16 | crc_ccitt (const iovec *iov, int len, ACE_UINT16 crc=0) |
| | Computes CRC-CCITT for the @ len iovec buffers.
|
| ACE_Export ACE_UINT32 | crc32 (const char *str) |
| | Computes the ISO 8802-3 standard 32 bits CRC for the string.
|
| ACE_Export ACE_UINT32 | crc32 (const void *buf, size_t len, ACE_UINT32 crc=0) |
| | Computes the ISO 8802-3 standard 32 bits CRC for the buffer.
|
| ACE_Export ACE_UINT32 | crc32 (const iovec *iov, int len, ACE_UINT32 crc=0) |
ACE_NAMESPACE_INLINE_FUNCTION
void | unique_name (const void *object, ACE_TCHAR *name, size_t length) |
ACE_NAMESPACE_INLINE_FUNCTION
u_long | log2 (u_long num) |
| | Computes the base 2 logarithm of <num>.
|
ACE_NAMESPACE_INLINE_FUNCTION
char | nibble2hex (u_int n) |
| | Hex conversion utility.
|
ACE_NAMESPACE_INLINE_FUNCTION
u_char | hex2byte (ACE_TCHAR c) |
| | Convert a hex character to its byte representation.
|
ACE_NAMESPACE_INLINE_FUNCTION
int | handle_read_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get read ready.
|
ACE_NAMESPACE_INLINE_FUNCTION
int | handle_write_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get write ready.
|
ACE_NAMESPACE_INLINE_FUNCTION
int | handle_exception_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get exception ready.
|
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | recv_i (ACE_HANDLE handle, void *buf, size_t len) |
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t | send_i (ACE_HANDLE handle, const void *buf, size_t len) |
| ACE_INLINE ssize_t | read_n (ACE_HANDLE handle, void *buf, size_t len, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | write_n (ACE_HANDLE handle, const void *buf, size_t len, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | recv_n (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | t_rcv_n (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | recv_n (ACE_HANDLE handle, void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | recvv_n (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | send_n (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | t_snd_n (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | send_n (ACE_HANDLE handle, const void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | sendv_n (ACE_HANDLE handle, const iovec *iov, int iovcnt, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_INLINE ssize_t | send_i (ACE_HANDLE handle, const void *buf, size_t len) |
| ACE_INLINE ssize_t | recv_i (ACE_HANDLE handle, void *buf, size_t len) |
| ACE_INLINE int | handle_read_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get read ready.
|
| ACE_INLINE int | handle_write_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get write ready.
|
| ACE_INLINE int | handle_exception_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout) |
| | Timed wait for handle to get exception ready.
|
| ACE_INLINE void | unique_name (const void *object, ACE_TCHAR *name, size_t length) |
| ACE_INLINE u_long | log2 (u_long num) |
| | Computes the base 2 logarithm of <num>.
|
| ACE_INLINE char | nibble2hex (u_int n) |
| | Hex conversion utility.
|
| ACE_INLINE u_char | hex2byte (ACE_TCHAR c) |
| | Convert a hex character to its byte representation.
|
| ACE_UINT32 | crc32 (const char *string) |
| | Computes the ISO 8802-3 standard 32 bits CRC for the string.
|
| ACE_UINT32 | crc32 (const void *buffer, size_t len, ACE_UINT32 crc) |
| | Computes the ISO 8802-3 standard 32 bits CRC for the buffer.
|
| ACE_UINT32 | crc32 (const iovec *iov, int len, ACE_UINT32 crc) |
| ACE_UINT16 | crc_ccitt (const char *string) |
| | Computes CRC-CCITT for the string.
|
| ACE_UINT16 | crc_ccitt (const void *buffer, size_t len, ACE_UINT16 crc) |
| | Computes CRC-CCITT for the buffer.
|
| ACE_UINT16 | crc_ccitt (const iovec *iov, int len, ACE_UINT16 crc) |
| | Computes CRC-CCITT for the @ len iovec buffers.
|
| int | set_flags (ACE_HANDLE handle, int flags) |
| | Set flags associated with handle.
|
| int | clr_flags (ACE_HANDLE handle, int flags) |
| | Clear flags associated with handle.
|
ACE_NAMESPACE_INLINE_FUNCTION
int | get_flags (ACE_HANDLE handle) |
| | Return the current setting of flags associated with handle.
|
| ACE_INLINE int | get_flags (ACE_HANDLE handle) |
| | Return the current setting of flags associated with handle.
|
| ACE_HANDLE | handle_timed_open (ACE_Time_Value *timeout, const ACE_TCHAR *name, int flags, int perms, LPSECURITY_ATTRIBUTES sa) |
| int | init (void) |
| int | fini (void) |
| int | ldfind (const ACE_TCHAR *filename, ACE_TCHAR pathname[], size_t maxpathnamelen) |
| FILE * | ldopen (const ACE_TCHAR *filename, const ACE_TCHAR *type) |
| ACE_TCHAR * | ldname (const ACE_TCHAR *entry_point) |
| int | get_temp_dir (ACE_TCHAR *buffer, size_t buffer_len) |
| ACE_HANDLE | open_temp_file (const ACE_TCHAR *name, int mode, int perm) |
| size_t | strrepl (char *s, char search, char replace) |
| char * | strsplit_r (char *str, const char *token, char *&next_start) |
| wchar_t * | strsplit_r (wchar_t *s, const wchar_t *token, wchar_t *&next_start) |
| | As strsplit_r, but for wide characters.
|
| size_t | strrepl (wchar_t *s, wchar_t search, wchar_t replace) |
| | As strrepl, but for wide characters.
|
| int | bind_port (ACE_HANDLE handle, ACE_UINT32 ip_addr=INADDR_ANY, int address_family=AF_UNSPEC) |
| | Bind a new unused port to handle.
|
| int | get_bcast_addr (ACE_UINT32 &bcast_addr, const ACE_TCHAR *host_name, ACE_UINT32 host_addr, ACE_HANDLE handle) |
| int | get_ip_interfaces (size_t &count, ACE_INET_Addr *&addrs) |
| int | count_interfaces (ACE_HANDLE handle, size_t &how_many) |
| ACE_HANDLE | get_handle (void) |
| int | ipv6_enabled (void) |
Variables |
| size_t | allocation_granularity_ = 0 |
| size_t | pagesize_ = 0 |
| char | debug_ |
| unsigned int | init_fini_count_ = 0 |
The ACE namespace contains all types (classes, structures, typedefs, etc), and global functions and variables in the ACE framework.