Cyber Garage Portable Runtime (CGPR) for C
socket_opt.h File Reference
#include <stdbool.h>
#include <cgpr/net/typedef.h>

Data Structures

struct  CGSocketOption
 

Macros

#define cg_socket_option_setreuseaddress(opt, flag)
 
#define cg_socket_option_isreuseaddress(opt)
 
#define cg_socket_option_setbindinterface(opt, flag)
 
#define cg_socket_option_isbindinterface(opt)
 
#define cg_socket_option_setmulticastloop(opt, flag)
 
#define cg_socket_option_ismulticastloop(opt)
 

Functions

CGSocketOptioncg_socket_option_new (void)
 
bool cg_socket_option_delete (CGSocketOption *opt)
 

Macro Definition Documentation

◆ cg_socket_option_isbindinterface

#define cg_socket_option_isbindinterface ( opt)
Value:
((opt)->bind)

◆ cg_socket_option_ismulticastloop

#define cg_socket_option_ismulticastloop ( opt)
Value:
((opt)->loop)

◆ cg_socket_option_isreuseaddress

#define cg_socket_option_isreuseaddress ( opt)
Value:
((opt)->reuse)

◆ cg_socket_option_setbindinterface

#define cg_socket_option_setbindinterface ( opt,
flag )
Value:
((opt)->bind = flag)

◆ cg_socket_option_setmulticastloop

#define cg_socket_option_setmulticastloop ( opt,
flag )
Value:
((opt)->loop = flag)

◆ cg_socket_option_setreuseaddress

#define cg_socket_option_setreuseaddress ( opt,
flag )
Value:
((opt)->reuse = flag)

Function Documentation

◆ cg_socket_option_delete()

bool cg_socket_option_delete ( CGSocketOption * opt)

◆ cg_socket_option_new()

CGSocketOption * cg_socket_option_new ( void )