VSM C++ SDK
Vehicle Specific Modules SDK
sockets.h
1 // Copyright (c) 2014, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
5 /*
6  * platform_sockets.h
7  *
8  * Defines platform specific parts of socket implementation.
9  */
10 
11 #ifndef SOCKETS_H_
12 #define SOCKETS_H_
13 
14 #include <ugcs/vsm/platform_sockets.h>
15 
16 namespace ugcs
17 {
18 namespace vsm
19 {
20 namespace sockets
21 {
22 
23 // These two calls are for WSAStartup and friends. Nop in unix world.
24 void
25 Init_sockets();
26 void
27 Done_sockets();
28 
29 int
30 Create_socketpair(Socket_handle&, Socket_handle&);
31 
32 int
33 Close_socket(Socket_handle);
34 
35 bool
36 Is_last_operation_pending();
37 
38 int
39 Make_nonblocking(Socket_handle);
40 
41 int
42 Disable_sigpipe(Socket_handle);
43 
44 int
45 Prepare_for_listen(Socket_handle, bool is_multicast);
46 
47 }// namespace platform
48 }
49 }
50 
51 #endif /* SOCKETS_H_ */
UGCS root namespace.
Definition: android-linux/ugcs/vsm/platform_sockets.h:27