20 #ifndef included_vlibsocket_api_h 21 #define included_vlibsocket_api_h 52 u8 * buffer,
uword buffer_bytes);
54 #define SOCKSVR_DEFAULT_PORT 32741 67 u8 *elem,
u8 *data_vector);
69 u8 *elem,
u32 msg_length);
71 u8 *elem,
u32 msg_length);
void vl_socket_process_msg(struct unix_file *uf, struct vl_api_registration_ *rp, i8 *input_v)
void vl_socket_api_send(vl_api_registration_t *rp, u8 *elem)
void socksvr_set_port(u16 port)
vl_api_registration_t * registration_pool
vl_api_registration_t * current_rp
clib_error_t * vl_socket_read_ready(struct unix_file *uf)
socket_main_t socket_main
void vl_socket_api_send_with_length(vl_api_registration_t *rp, u8 *elem, u32 msg_length)
void vl_socket_api_send_with_data(vl_api_registration_t *rp, u8 *elem, u8 *data_vector)
void socksvr_add_pending_output(struct unix_file *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)
void sockclnt_close_index(u32 index)
u32 sockclnt_open_index(char *client_name, char *hostname, int port)
void vl_free_socket_registration_index(u32 pool_index)
clib_error_t * vl_socket_write_ready(struct unix_file *uf)
void vl_socket_add_pending_output(struct unix_file *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
vl_api_registration_t * sockclnt_get_registration(u32 index)
void vl_client_msg_api_send(vl_api_registration_t *cm, u8 *elem)
void socksvr_set_bind_address(u32 bind_address)
void vl_socket_api_send_with_length_no_free(vl_api_registration_t *rp, u8 *elem, u32 msg_length)