MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
sock.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IPPORT_USERRESERVED   IPPORT_RESERVED
 
#define MSG_NOSIGNAL   SO_NOSIGPIPE
 
#define MBDYN_DEFAULT_SOCKET_TYPE   SOCK_STREAM
 

Typedefs

typedef int socklen_t
 

Functions

int mbdyn_make_inet_socket (struct sockaddr_in *name, const char *hostname, unsigned short int port, int dobind, int *perror)
 
int mbdyn_make_inet_socket_type (struct sockaddr_in *name, const char *hostname, unsigned short int port, int socket_type, int dobind, int *perror)
 
int mbdyn_make_named_socket (struct sockaddr_un *name, const char *path, int dobind, int *perror)
 
int mbdyn_make_named_socket_type (struct sockaddr_un *name, const char *path, int socket_type, int dobind, int *perror)
 

Macro Definition Documentation

#define IPPORT_USERRESERVED   IPPORT_RESERVED

Definition at line 66 of file sock.h.

Referenced by ReadExtSocketHandler().

#define MBDYN_DEFAULT_SOCKET_TYPE   SOCK_STREAM

Definition at line 73 of file sock.h.

#define MSG_NOSIGNAL   SO_NOSIGPIPE

Typedef Documentation

typedef int socklen_t

Definition at line 40 of file sock.h.

Function Documentation

int mbdyn_make_inet_socket ( struct sockaddr_in *  name,
const char *  hostname,
unsigned short int  port,
int  dobind,
int perror 
)

Referenced by main(), and send_message().

int mbdyn_make_inet_socket_type ( struct sockaddr_in *  name,
const char *  hostname,
unsigned short int  port,
int  socket_type,
int  dobind,
int perror 
)
int mbdyn_make_named_socket ( struct sockaddr_un *  name,
const char *  path,
int  dobind,
int perror 
)

Referenced by main(), and send_message().

int mbdyn_make_named_socket_type ( struct sockaddr_un *  name,
const char *  path,
int  socket_type,
int  dobind,
int perror 
)