Classes | |
| struct | ACE::If_Then_Else< true, Ta, Tb > |
| struct | ACE::If_Then_Else< false, Ta, Tb > |
| struct | ACE::VP_traits< T > |
Value_Ptr traits template structure. More... | |
| class | ACE::Value_Ptr< T > |
| Smart pointer implementation designed for use as a class member. More... | |
| struct | ACE::If_Then_Else |
| Compile-time selection of type based on a boolean value. More... | |
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, 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 The return values for the "*_n()" methods match the return values from the non "_n()" methods and are specified as follows:
On partial transfers, i.e., if any data is transferred before timeout / error / Methods with iovec parameter are I/O vector variants of the I/O operations.
Methods with the extra flags argument will always result in | |
| ACE_Export ssize_t | recv (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | t_rcv (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | recv (ACE_HANDLE handle, void *buf, size_t len, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | recvmsg (ACE_HANDLE handle, struct msghdr *msg, int flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | recvfrom (ACE_HANDLE handle, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen, const ACE_Time_Value *timeout=0) |
| 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_Export ssize_t | recv (ACE_HANDLE handle, size_t n,...) |
| Receive into a variable number of pieces. | |
| ACE_Export ssize_t | recvv (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout=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_Export ssize_t | recv_n (ACE_HANDLE handle, ACE_Message_Block *message_block, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) |
| ACE_Export ssize_t | send (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | t_snd (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | send (ACE_HANDLE handle, const void *buf, size_t len, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | sendmsg (ACE_HANDLE handle, const struct msghdr *msg, int flags, const ACE_Time_Value *timeout=0) |
| ACE_Export ssize_t | sendto (ACE_HANDLE handle, const char *buf, int len, int flags, const struct sockaddr *addr, int addrlen, const ACE_Time_Value *timeout=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_Export ssize_t | send (ACE_HANDLE handle, size_t n,...) |
| Varargs variant. | |
| ACE_Export ssize_t | sendv (ACE_HANDLE handle, const iovec *iov, int iovcnt, const ACE_Time_Value *timeout=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_Export ssize_t | send_n (ACE_HANDLE handle, const ACE_Message_Block *message_block, 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) |
| ACE_Export ssize_t | write_n (ACE_HANDLE handle, const ACE_Message_Block *message_block, size_t *bytes_transferred=0) |
| ACE_Export ssize_t | readv_n (ACE_HANDLE handle, iovec *iov, int iovcnt, size_t *bytes_transferred=0) |
| ACE_Export ssize_t | writev_n (ACE_HANDLE handle, const iovec *iov, int iovcnt, size_t *bytes_transferred=0) |
Functions | |
| ACE_Export u_int | major_version (void) |
| e.g., the "5" in ACE 5.1.12. | |
| ACE_Export u_int | minor_version (void) |
| e.g., the "1" in ACE 5.1.12. | |
| ACE_Export u_int | beta_version (void) |
| ACE_Export const ACE_TCHAR * | compiler_name (void) |
| E.g., the "SunPro C++" in SunPro C++ 4.32.0. | |
| ACE_Export u_int | compiler_major_version (void) |
| E.g., the "4" in SunPro C++ 4.32.0. | |
| ACE_Export u_int | compiler_minor_version (void) |
| E.g., the "32" in SunPro C++ 4.32.0. | |
| ACE_Export u_int | compiler_beta_version (void) |
| E.g., the "0" in SunPro C++ 4.32.0. | |
| ACE_Export int | out_of_handles (int error) |
| ACE_Export bool | wild_match (const char *s, const char *pattern, bool case_sensitive=true) |
| ACE_Export int | handle_timed_accept (ACE_HANDLE listener, ACE_Time_Value *timeout, int restart) |
| ACE_Export ACE_HANDLE | handle_timed_complete (ACE_HANDLE listener, const ACE_Time_Value *timeout, int is_tli=0) |
| ACE_Export int | set_handle_limit (int new_limit=-1, int increase_limit_only=0) |
| ACE_Export int | max_handles (void) |
| ACE_Export ACE_TCHAR * | strenvdup (const ACE_TCHAR *str) |
| ACE_Export const char * | strend (const char *s) |
| ACE_Export char * | strnew (const char *s) |
| ACE_NAMESPACE_INLINE_FUNCTION void | strdelete (char *s) |
Delete the memory allocated by strnew. | |
| ACE_Export char * | strndup (const char *str, size_t n) |
| ACE_Export char * | strnnew (const char *str, size_t n) |
| ACE_Export const wchar_t * | strend (const wchar_t *s) |
| ACE_Export wchar_t * | strnew (const wchar_t *s) |
| ACE_NAMESPACE_INLINE_FUNCTION void | strdelete (wchar_t *s) |
| ACE_Export wchar_t * | strndup (const wchar_t *str, size_t n) |
| ACE_Export wchar_t * | strnnew (const wchar_t *str, size_t n) |
| ACE_Export const ACE_TCHAR * | execname (const ACE_TCHAR *pathname) |
| ACE_Export const ACE_TCHAR * | basename (const ACE_TCHAR *pathname, ACE_TCHAR delim=ACE_DIRECTORY_SEPARATOR_CHAR) |
| ACE_Export const ACE_TCHAR * | dirname (const ACE_TCHAR *pathname, ACE_TCHAR delim=ACE_DIRECTORY_SEPARATOR_CHAR) |
| ACE_Export ACE_TCHAR * | timestamp (ACE_TCHAR date_and_time[], int time_len, int return_pointer_to_first_digit=0) |
| ACE_Export pid_t | fork (const ACE_TCHAR *program_name=ACE_LIB_TEXT("<unknown>"), int avoid_zombies=0) |
| ACE_Export int | daemonize (const ACE_TCHAR pathname[]=ACE_LIB_TEXT("/"), int close_all_handles=ACE_DEFAULT_CLOSE_ALL_HANDLES, const ACE_TCHAR program_name[]=ACE_LIB_TEXT("<unknown>")) |
| ACE_Export size_t | round_to_pagesize (off_t length) |
| Rounds the request to a multiple of the page size. | |
| ACE_Export size_t | round_to_allocation_granularity (off_t len) |
| Rounds the request to a multiple of the allocation granularity. | |
| ACE_Export size_t | format_hexdump (const char *buffer, size_t size, ACE_TCHAR *obuf, size_t obuf_sz) |
| ACE_Export u_long | hash_pjw (const char *str) |
| Computes the hash value of {str} using the "Hash PJW" routine. | |
| ACE_Export u_long | hash_pjw (const char *str, size_t len) |
| Computes the hash value of {str} using the "Hash PJW" routine. | |
| ACE_Export u_long | hash_pjw (const wchar_t *str) |
| Computes the hash value of {str} using the "Hash PJW" routine. | |
| ACE_Export u_long | hash_pjw (const wchar_t *str, size_t len) |
| Computes the hash value of {str} using the "Hash PJW" routine. | |
| 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_Export u_long | gcd (u_long x, u_long y) |
| Euclid's greatest common divisor algorithm. | |
| ACE_Export u_long | minimum_frame_size (u_long period1, u_long period2) |
| Calculates the minimum enclosing frame size for the given values. | |
| ACE_Export u_long | is_prime (const u_long n, const u_long min_factor, const u_long max_factor) |
| ACE_Export int | map_errno (int error) |
| ACE_Export const ACE_TCHAR * | sock_error (int error) |
| ACE_Export bool | is_sock_error (int error) |
| ACE_Export int | process_active (pid_t pid) |
| ACE_Export int | terminate_process (pid_t pid) |
| 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 ACE_TCHAR | 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_Export char | debug (void) |
| ACE_Export void | debug (char d) |
| ACE_Export 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. | |
| ACE_Export int | select (int width, ACE_Handle_Set &readfds, const ACE_Time_Value *timeout=0) |
| 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_Export 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. | |
| ACE_Export int | enter_recv_timedwait (ACE_HANDLE handle, const ACE_Time_Value *timeout, int &val) |
| ACE_Export int | enter_send_timedwait (ACE_HANDLE handle, const ACE_Time_Value *timeout, int &val) |
| ACE_Export void | record_and_set_non_blocking_mode (ACE_HANDLE handle, int &val) |
| ACE_Export void | restore_non_blocking_mode (ACE_HANDLE handle, int val) |
| ACE_NAMESPACE_INLINE_FUNCTION ssize_t | recv_i (ACE_HANDLE handle, void *buf, size_t len) |
| ACE_Export ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, int flags, size_t *bytes_transferred) |
| ACE_Export ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | t_rcv_n_i (ACE_HANDLE handle, void *buf, size_t len, int *flags, size_t *bytes_transferred) |
| ACE_Export ssize_t | t_rcv_n_i (ACE_HANDLE handle, void *buf, size_t len, int *flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, size_t *bytes_transferred) |
| ACE_Export ssize_t | recv_n_i (ACE_HANDLE handle, void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | recvv_n_i (ACE_HANDLE handle, iovec *iov, int iovcnt, size_t *bytes_transferred) |
| ACE_Export ssize_t | recvv_n_i (ACE_HANDLE handle, iovec *iov, int iovcnt, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_NAMESPACE_INLINE_FUNCTION ssize_t | send_i (ACE_HANDLE handle, const void *buf, size_t len) |
| ACE_Export ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, size_t *bytes_transferred) |
| ACE_Export ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | t_snd_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, size_t *bytes_transferred) |
| ACE_Export ssize_t | t_snd_n_i (ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, size_t *bytes_transferred) |
| ACE_Export ssize_t | send_n_i (ACE_HANDLE handle, const void *buf, size_t len, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export ssize_t | sendv_n_i (ACE_HANDLE handle, const iovec *iov, int iovcnt, size_t *bytes_transferred) |
| ACE_Export ssize_t | sendv_n_i (ACE_HANDLE handle, const iovec *iov, int iovcnt, const ACE_Time_Value *timeout, size_t *bytes_transferred) |
| ACE_Export int | set_flags (ACE_HANDLE handle, int flags) |
| Set flags associated with handle. | |
| ACE_Export 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_Export ACE_HANDLE | handle_timed_open (ACE_Time_Value *timeout, const ACE_TCHAR *name, int flags, int perms, LPSECURITY_ATTRIBUTES sa=0) |
| ACE_Export int | init (void) |
| ACE_Export int | fini (void) |
| ACE_Export int | ldfind (const ACE_TCHAR *filename, ACE_TCHAR pathname[], size_t maxpathnamelen) |
| ACE_Export FILE * | ldopen (const ACE_TCHAR *filename, const ACE_TCHAR *type) |
| ACE_Export ACE_TCHAR * | ldname (const ACE_TCHAR *entry_point) |
| ACE_Export int | get_temp_dir (ACE_TCHAR *buffer, size_t buffer_len) |
| ACE_Export ACE_HANDLE | open_temp_file (const ACE_TCHAR *name, int mode, int perm=0) |
| ACE_Export size_t | strrepl (char *s, char search, char replace) |
| ACE_Export char * | strsplit_r (char *s, const char *token, char *&next_start) |
| ACE_Export size_t | strrepl (wchar_t *s, wchar_t search, wchar_t replace) |
| As strrepl, but for wide characters. | |
| ACE_Export wchar_t * | strsplit_r (wchar_t *s, const wchar_t *token, wchar_t *&next_start) |
| As strsplit_r, but for wide characters. | |
| ACE_Export int | bind_port (ACE_HANDLE handle, ACE_UINT32 ip_addr=INADDR_ANY, int address_family=AF_UNSPEC) |
| Bind a new unused port to handle. | |
| ACE_Export int | get_bcast_addr (ACE_UINT32 &bcast_addr, const ACE_TCHAR *hostname=0, ACE_UINT32 host_addr=0, ACE_HANDLE handle=ACE_INVALID_HANDLE) |
| ACE_Export int | get_ip_interfaces (size_t &count, ACE_INET_Addr *&addr_array) |
| ACE_Export int | count_interfaces (ACE_HANDLE handle, size_t &how_many) |
| ACE_Export ACE_HANDLE | get_handle (void) |
| ACE_Export 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.
|
||||||||||||
|
Returns the "basename" of a pathname separated by delim. For instance, the basename of "/tmp/foo.cpp" is "foo.cpp" when delim is '/'. |
|
|
e.g., the "12" in ACE 5.1.12. Returns 0 for "stable" (non-beta) releases. |
|
||||||||||||||||
|
Bind a new unused port to handle.
|
|
||||||||||||
|
Clear flags associated with handle.
|
|
|
E.g., the "0" in SunPro C++ 4.32.0.
|
|
|
E.g., the "4" in SunPro C++ 4.32.0.
|
|
|
E.g., the "32" in SunPro C++ 4.32.0.
|
|
|
E.g., the "SunPro C++" in SunPro C++ 4.32.0.
|
|
||||||||||||
|
Helper routine for get_ip_interfaces, differs by UNIX platform so put into own subroutine. perform some ioctls to retrieve ifconf list of ifreq structs. |
|
||||||||||||||||
|
Computes the ISO 8802-3 standard 32 bits CRC for the @ len iovec buffers. |
|
||||||||||||||||
|
Computes the ISO 8802-3 standard 32 bits CRC for the buffer.
|
|
|
Computes the ISO 8802-3 standard 32 bits CRC for the string.
|
|
||||||||||||||||
|
Computes CRC-CCITT for the @ len iovec buffers.
|
|
||||||||||||||||
|
Computes CRC-CCITT for the buffer.
|
|
|
Computes CRC-CCITT for the string.
|
|
||||||||||||||||
|
Become a daemon process using the algorithm in Richard Stevens "Advanced Programming in the UNIX Environment." If close_all_handles is non-zero then all open file handles are closed. |
|
|
|
|
|
|
|
||||||||||||
|
Returns the "dirname" of a pathname. For instance, the dirname of "/tmp/foo.cpp" is "/tmp" when delim is '/'. If pathname has no delim ".\0" is returned. This method does not modify pathname and is not reentrant. |
|
||||||||||||||||
|
Wait for timeout before proceeding to a |
|
||||||||||||||||
|
Wait for timeout before proceeding to a |
|
|
On Windows, determines if a specified pathname ends with ".exe" (not case sensitive). If on Windows and there is no ".exe" suffix, a new ACE_TCHAR array is allocated and a copy of
|
|
|
Shut down ACE library services. Can be called only once per program invocation.
|
|
||||||||||||
|
if avoid_zombies == 0 call |
|
||||||||||||||||||||
|
Format buffer into printable format. This is useful for debugging. |
|
||||||||||||
|
Euclid's greatest common divisor algorithm.
|
|
||||||||||||||||||||
|
Get our broadcast address based on our host_addr. If hostname is non-0 we'll use it to determine our IP address. If handle is not ACE_INVALID_HANDLE then we'll use this to determine our broadcast address, otherwise we'll have to create a socket internally (and free it). Returns -1 on failure and 0 on success. |
|
|
Return the current setting of flags associated with handle.
|
|
|
Routine to return a handle from which |
|
||||||||||||
|
Return count and array of all configured IP interfaces on this host, rc = 0 on success (count == number of interfaces else -1). Caller is responsible for calling delete [] on addr_array. |
|
||||||||||||
|
Returns the temporary directory including the trailing slash in buffer. Returns -1 for an error or if the buffer_len is not long enough. |
|
||||||||||||
|
Timed wait for handle to get exception ready.
|
|
||||||||||||
|
Timed wait for handle to get read ready.
|
|
||||||||||||||||||||||||
|
Timed wait for handle to get read, write, or exception ready.
|
|
||||||||||||||||
|
Wait up to timeout amount of time to passively establish a connection. This method doesn't perform the |
|
||||||||||||||||
|
Wait up to timeout amount of time to complete an actively established non-blocking connection. If is_tli is non-0 then we are being called by a TLI wrapper (which behaves slightly differently from a socket wrapper). |
|
||||||||||||||||||||||||
|
Wait up to timeout> amount of time to actively open a device. This method doesn't perform the |
|
||||||||||||
|
Timed wait for handle to get write ready.
|
|
||||||||||||
|
Computes the hash value of {str} using the "Hash PJW" routine.
|
|
|
Computes the hash value of {str} using the "Hash PJW" routine.
|
|
||||||||||||
|
Computes the hash value of {str} using the "Hash PJW" routine.
|
|
|
Computes the hash value of {str} using the "Hash PJW" routine.
|
|
|
Convert a hex character to its byte representation.
|
|
|
This class implements the functions for the initialization and shutting down ACE. These functions are called only once per ACE invokation.
|
|
|
Returns 1 if IPv6 is enabled on the current host; 0 if not. This is an execution-time check. If ACE has not been compiled with ACE_HAS_IPV6, it always returns 0. If ACE_HAS_IPV6 is enabled, this function tries to create a PF_INET6 socket, returning 1 if it succeeds, and 0 if it fails. Caches the result so it only gets checked once. |
|
||||||||||||||||
|
Function that can burn up noticeable CPU time: brute-force determination of whether number n is prime. Returns 0 if it is prime, or the smallest factor if it is not prime. min_factor and max_factor can be used to partition the work among threads. For just one thread, typical values are 2 and n/2. |
|
|
Determins whether the given error code corresponds to to a WinSock error. If so returns true, false otherwise. For internal use only.
|
|
||||||||||||||||
|
Finds the file filename either using an absolute path or using a relative path in conjunction with ACE_LD_SEARCH_PATH (e.g., $LD_LIBRARY_PATH on UNIX or the directories scaned by Win32 API SearchPath on Win32). This function will add appropriate suffix (e.g., .dll on Win32 or .so on UNIX) according to the OS platform. In addition, this function will apply the appropriate prefix (e.g., "lib" on UNIX and "" on Win32) if the filename doesn't match directly. |
|
|
Transforms entry_point into a form that can be located in a dynamic library using <dlsym>. For example, with Win32/Borland extern "C" functions which use the default calling convention have a '_' prepended. Always returns a buffer that has been dynamically allocated using <operator new="">. |
|
||||||||||||
|
Uses |
|
|
Computes the base 2 logarithm of {num}.
|
|
|
e.g., the "5" in ACE 5.1.12.
|
|
|
Map troublesome win32 errno values to values that standard C strerr function understands. Thank you Microsoft. |
|
|
Returns the maximum number of open handles currently permitted in this process. This maximum may be extended using |
|
||||||||||||
|
Calculates the minimum enclosing frame size for the given values.
|
|
|
e.g., the "1" in ACE 5.1.12.
|
|
|
Hex conversion utility.
|
|
||||||||||||||||
|
Opening the temp file. File is automagically unlinked when it is closed. This is useful for have temp files. |
|
|
Check if error indicates the process being out of handles (file descriptors). |
|
|
Checks if process with {pid} is still alive. Returns 1 if it is still alive, 0 if it isn't alive, and -1 if something weird happened. |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
This makes sure that handle is set into non-blocking mode. val keeps track of whether were in non-blocking mode or not. |
|