]>
Commit | Line | Data |
---|---|---|
59bc0593 | 1 | /** @file\r |
2 | Windows version of the OOB Receive application\r | |
3 | \r | |
bcb96695 MK |
4 | Copyright (c) 2011-2012, Intel Corporation. All rights reserved.\r |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
59bc0593 | 6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include <OobRx.h>\r | |
10 | \r | |
11 | \r | |
12 | /**\r | |
13 | Receive out-of-band messages from the remote system.\r | |
14 | \r | |
15 | @param [in] argc The number of arguments\r | |
16 | @param [in] argv The argument value array\r | |
17 | \r | |
18 | @retval 0 The application exited normally.\r | |
19 | @retval Other An error occurred.\r | |
20 | **/\r | |
21 | int\r | |
22 | main(\r | |
23 | int argc,\r | |
24 | char ** argv\r | |
25 | )\r | |
26 | {\r | |
27 | int RetVal;\r | |
28 | WSADATA WsaData;\r | |
29 | \r | |
30 | //\r | |
31 | // Initialize the WinSock layer\r | |
32 | //\r | |
33 | RetVal = WSAStartup ( MAKEWORD ( 2, 2 ), &WsaData );\r | |
34 | if ( 0 == RetVal ) {\r | |
35 | //\r | |
36 | // Start the application\r | |
37 | //\r | |
38 | RetVal = OobRx ( argc, argv );\r | |
39 | \r | |
40 | //\r | |
41 | // Done with the WinSock layer\r | |
42 | //\r | |
43 | WSACleanup ( );\r | |
44 | }\r | |
45 | \r | |
46 | //\r | |
47 | // Return the final result\r | |
48 | //\r | |
49 | return RetVal; \r | |
50 | }\r |