#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <netinet/in.h>
#include "libpq/protocol.h"
Go to the source code of this file.
◆ CANCEL_REQUEST_CODE
◆ MAX_STARTUP_PACKET_LENGTH
#define MAX_STARTUP_PACKET_LENGTH 10000 |
◆ NEGOTIATE_GSS_CODE
◆ NEGOTIATE_SSL_CODE
◆ PG_PROTOCOL
#define PG_PROTOCOL |
( |
|
m, |
|
|
|
n |
|
) |
| (((m) << 16) | (n)) |
◆ PG_PROTOCOL_EARLIEST
◆ PG_PROTOCOL_LATEST
◆ PG_PROTOCOL_MAJOR
#define PG_PROTOCOL_MAJOR |
( |
|
v | ) |
((v) >> 16) |
◆ PG_PROTOCOL_MINOR
#define PG_PROTOCOL_MINOR |
( |
|
v | ) |
((v) & 0x0000ffff) |
◆ UNIXSOCK_PATH
Value:
snprintf(path, sizeof(path), "%s/.s.PGSQL.%d", \
#define AssertMacro(condition)
static const char * sockdir
Definition at line 44 of file pqcomm.h.
◆ UNIXSOCK_PATH_BUFLEN
#define UNIXSOCK_PATH_BUFLEN sizeof(((struct sockaddr_un *) NULL)->sun_path) |
◆ AuthRequest
◆ CancelRequestPacket
◆ MsgType
◆ PacketLen
◆ ProtocolVersion
◆ is_unixsock_path()
static bool is_unixsock_path |
( |
const char * |
path | ) |
|
|
inlinestatic |