53#define MAX_PORT_TRIES 100
54#define FBS_CALLBACK_NULL (void (*)(void))NULL
55#define FBSERV_OBJ_NULL (struct fbserv_obj *)NULL
Header file for the BRL-CAD common definitions.
struct pkg_switch * fbs_pkg_switch(void)
int fbs_new_client(struct fbserv_obj *fbsp, struct pkg_conn *pcp, void *data)
int fbs_close(struct fbserv_obj *fbsp)
void fbs_setup_socket(int fd)
void fbs_existing_client_handler(void *clientData, int mask)
int fbs_open(struct fbserv_obj *fbsp, int port)
struct fbserv_obj * fbsc_fbsp
points to its fbserv object
struct pkg_conn * fbsc_pkg
void * fbsc_chan
platform/toolkit specific channel
int fbsc_fd
socket to send data down
void * fbsc_handler
platform/toolkit specific handler
struct fbserv_obj * fbsl_fbsp
points to its fbserv object
int fbsl_port
port number to listen on
void * fbsl_chan
platform/toolkit specific channel
int fbsl_fd
socket to listen for connections
int fbsl_listen
!0 means listen for connections
void(* fbs_open_server_handler)(struct fbserv_obj *)
platform/toolkit method to open listener handler
struct fbserv_client fbs_clients[MAX_CLIENTS]
connected clients
void(* fbs_callback)(void *)
callback function
int(* fbs_listen_on_port)(struct fbserv_obj *, int)
return 1 on success, 0 on failure
void(* fbs_close_server_handler)(struct fbserv_obj *)
platform/toolkit method to close handler listener
struct fbserv_listener fbs_listener
data for listening
int fbs_mode
0-off, 1-underlay, 2-interlay, 3-overlay
void(* fbs_close_client_handler)(struct fbserv_obj *, int)
platform/toolkit method to close handler for client at index client_id
struct fb * fbs_fbp
framebuffer pointer
void * fbs_interp
interpreter
void(* fbs_open_client_handler)(struct fbserv_obj *, int, void *)
platform/toolkit specific client handler setup (called by fbs_new_client)
int(* fbs_is_listening)(struct fbserv_obj *)
return 1 if listening, else 0