qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
config.h File Reference

Configuration and platform-specific definitions for the QB IO library. More...

#include <qb/utility/build_macros.h>
#include <netdb.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <fcntl.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QB_ENABLE_UDS   1
 Enables Unix Domain Socket support via SOCK_STREAM.
#define QB__DECL
 Function declaration specifier that changes based on whether header-only mode is enabled.
#define QB_INTEROP_DECL
 Interoperability declaration for function pointers.
#define QB_ARRAYSIZE(A)
 Macro to calculate the number of elements in a statically-allocated array.
#define QB_SSIZEOF(T)
 Macro to get the size of a type as a signed integer.
#define QB_OBSOLETE_DEPRECATE(_Replacement)
 Marks functions as deprecated with a replacement suggestion.
#define QB_VERSION_NUM   0x033705
 Defines the QB library version number in hexadecimal format.
#define QB_DEFAULT_MULTICAST_TTL   (int) 128
 Default Time-To-Live value for multicast packets.
#define QB_INET_BUFFER_SIZE   65536
 Maximum size for internet protocol buffers.
#define QB_MAX_PDU_BUFFER_SIZE   static_cast<int>(1 * 1024 * 1024)
 Maximum Protocol Data Unit buffer size.
#define QB_UNPACK_MAX_STRIP   32
 Maximum number of initial bytes that can be stripped during unpacking.
#define SD_RECEIVE   SHUT_RD
 Socket shutdown flag for disabling receive operations.
#define SD_SEND   SHUT_WR
 Socket shutdown flag for disabling send operations.
#define SD_BOTH   SHUT_RDWR
 Socket shutdown flag for disabling both send and receive operations.
#define closesocket   close
 Cross-platform macro for closing a socket.
#define ioctlsocket   ioctl
 Cross-platform macro for socket I/O control.
#define FD_TO_SOCKET(fd)
 Converts a file descriptor to a socket handle.
#define OPEN_FD_FROM_SOCKET(sock)
 Converts a socket handle to a file descriptor.
#define SD_NONE   -1
 Special value indicating no socket shutdown operation.
#define MAXNS   3
 Maximum number of nameservers.
#define IN_MAX_ADDRSTRLEN   INET6_ADDRSTRLEN
 Maximum length of string representation for an IP address.

Typedefs

typedef int socket_type
 Cross-platform socket handle type.

Detailed Description

Configuration and platform-specific definitions for the QB IO library.

This file provides platform-specific definitions, macros, and configuration options for the QB IO library. It handles cross-platform compatibility issues, defines platform-specific settings, and includes the necessary system headers for socket programming on different operating systems.

The file includes macros for configuring features like Unix Domain Sockets, header-only implementation, and compatibility settings for different platforms.

Author
qb - C++ Actor Framework

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.