1 #include <VP_Com/vp_com_error.h>
2 #include <VP_Com/vp_com_socket.h>
4 #include "vp_com_config_itf.h"
6 #include <VP_Os/vp_os_malloc.h>
9 #include <sys/socket.h>
12 #include <netinet/in.h>
17 C_RESULT vp_com_wired_init(void)
22 C_RESULT vp_com_wired_shutdown(void)
27 C_RESULT vp_com_wired_network_adapter_lookup(vp_com_network_adapter_lookup_t callback)
32 C_RESULT vp_com_wired_inquire(const char* deviceName, vp_com_inquiry_t callback, uint32_t timeout)
37 C_RESULT vp_com_wired_local_config(vp_com_wired_config_t* cfg)
39 return vp_com_config_itf( cfg->itfName, cfg->localHost, cfg->broadcast, cfg->netmask );
42 C_RESULT vp_com_wired_connect(vp_com_t* vp_com, vp_com_wired_connection_t* connection, int32_t numAttempts)
47 C_RESULT vp_com_wired_disconnect(vp_com_wired_config_t* config, vp_com_wired_connection_t* connection)
52 C_RESULT vp_com_wired_wait_connections(vp_com_wired_connection_t** c, vp_com_socket_t* server, vp_com_socket_t* client, int32_t queueLength)
54 return vp_com_wait_socket(server, client, queueLength);
57 C_RESULT vp_com_wired_open(vp_com_wired_config_t* config, vp_com_wired_connection_t* connection, vp_com_socket_t* sck, Read* read, Write* write)
59 return vp_com_open_socket(sck, read, write);
62 C_RESULT vp_com_wired_close(vp_com_socket_t* socket)
64 return vp_com_close_socket(socket);