#include <grass/gis.h>
#include <grass/version.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
Go to the source code of this file.
Defines | |
#define | AF_LOCAL AF_UNIX |
#define | PF_LOCAL PF_UNIX |
Functions | |
char * | G_sock_get_fname (const char *name) |
int | G_sock_exists (const char *name) |
int | G_sock_bind (const char *name) |
int | G_sock_listen (int sockfd, unsigned int queue_len) |
int | G_sock_accept (int sockfd) |
int | G_sock_connect (const char *name) |
int | G_sock_socketpair (int family, int type, int protocol, int *fd) |
#define AF_LOCAL AF_UNIX |
For systems where the *_LOCAL (POSIX 1g) is not defined There's not really any difference between PF and AF in practice.
Definition at line 46 of file unix_socks.c.
Referenced by G_sock_bind(), and G_sock_connect().
#define PF_LOCAL PF_UNIX |
int G_sock_accept | ( | int | sockfd | ) |
Definition at line 229 of file unix_socks.c.
int G_sock_bind | ( | const char * | name | ) |
Definition at line 166 of file unix_socks.c.
References AF_LOCAL, G_sock_exists(), NULL, and PF_LOCAL.
int G_sock_connect | ( | const char * | name | ) |
int G_sock_exists | ( | const char * | name | ) |
Definition at line 144 of file unix_socks.c.
References NULL.
Referenced by G_sock_bind(), and G_sock_connect().
char* G_sock_get_fname | ( | const char * | name | ) |
int G_sock_listen | ( | int | sockfd, | |
unsigned int | queue_len | |||
) |
Definition at line 214 of file unix_socks.c.
int G_sock_socketpair | ( | int | family, | |
int | type, | |||
int | protocol, | |||
int * | fd | |||
) |
Definition at line 276 of file unix_socks.c.