unix_socks.c File Reference

#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>

Include dependency graph for unix_socks.c:

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 Documentation

#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

Definition at line 49 of file unix_socks.c.

Referenced by G_sock_bind(), and G_sock_connect().


Function Documentation

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  ) 

Definition at line 246 of file unix_socks.c.

References AF_LOCAL, G_sock_exists(), and PF_LOCAL.

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  ) 

Definition at line 116 of file unix_socks.c.

References G_free(), G_malloc(), and NULL.

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.


Generated on Sun Apr 6 17:32:26 2008 for GRASS by  doxygen 1.5.5