ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VP_SDK / VP_Com / linux / vp_com_wired.c
1 #include <VP_Com/vp_com_error.h>
2 #include <VP_Com/vp_com_socket.h>
3
4 #include "vp_com_config_itf.h"
5
6 #include <VP_Os/vp_os_malloc.h>
7
8 #include <netdb.h>
9 #include <sys/socket.h>
10
11 #include <net/if.h>
12 #include <netinet/in.h>
13
14 #include <stdio.h>
15
16
17 C_RESULT vp_com_wired_init(void)
18 {
19   return VP_COM_OK;
20 }
21
22 C_RESULT vp_com_wired_shutdown(void)
23 {
24   return VP_COM_OK;
25 }
26
27 C_RESULT vp_com_wired_network_adapter_lookup(vp_com_network_adapter_lookup_t callback)
28 {
29   return VP_COM_ERROR;
30 }
31
32 C_RESULT vp_com_wired_inquire(const char* deviceName, vp_com_inquiry_t callback, uint32_t timeout)
33 {
34   return VP_COM_ERROR;
35 }
36
37 C_RESULT vp_com_wired_local_config(vp_com_wired_config_t* cfg)
38 {
39   return vp_com_config_itf( cfg->itfName, cfg->localHost, cfg->broadcast, cfg->netmask );
40 }
41
42 C_RESULT vp_com_wired_connect(vp_com_t* vp_com, vp_com_wired_connection_t* connection, int32_t numAttempts)
43 {
44   return VP_COM_OK;
45 }
46
47 C_RESULT vp_com_wired_disconnect(vp_com_wired_config_t* config, vp_com_wired_connection_t* connection)
48 {
49   return VP_COM_OK;
50 }
51
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)
53 {
54   return vp_com_wait_socket(server, client, queueLength);
55 }
56
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)
58 {
59   return vp_com_open_socket(sck, read, write);
60 }
61
62 C_RESULT vp_com_wired_close(vp_com_socket_t* socket)
63 {
64   return vp_com_close_socket(socket);
65 }