20 #ifndef included_vlibsocket_api_h 21 #define included_vlibsocket_api_h 53 u8 * buffer,
uword buffer_bytes);
55 #define SOCKSVR_DEFAULT_PORT 32741 63 u8 * buffer,
uword buffer_bytes);
67 u8 * elem,
u8 * data_vector);
69 u8 * elem,
u32 msg_length);
71 u8 * elem,
u32 msg_length);
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
socket_main_t socket_main
void vl_socket_add_pending_output(clib_file_t *uf, struct vl_api_registration_ *rp, u8 *buffer, uword buffer_bytes)
void vl_socket_api_send_with_length(vl_api_registration_t *rp, u8 *elem, u32 msg_length)
clib_error_t * vl_socket_read_ready(clib_file_t *uf)
void vl_socket_api_send_with_data(vl_api_registration_t *rp, u8 *elem, u8 *data_vector)
void sockclnt_close_index(u32 index)
clib_error_t * vl_socket_write_ready(clib_file_t *uf)
An API client registration, only in vpp/vlib.
void vl_socket_process_msg(clib_file_t *uf, struct vl_api_registration_ *rp, i8 *input_v)
u32 sockclnt_open_index(char *client_name, char *hostname, int port)
void vl_free_socket_registration_index(u32 pool_index)
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 socksvr_add_pending_output(clib_file_t *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)
void vl_socket_api_send_with_length_no_free(vl_api_registration_t *rp, u8 *elem, u32 msg_length)