]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Sockets/OobTx/Windows/main.c
Update the sockets applications
[mirror_edk2.git] / AppPkg / Applications / Sockets / OobTx / Windows / main.c
CommitLineData
59bc0593 1/** @file\r
2 Windows version of the OOB Transmit application\r
3\r
4 Copyright (c) 2011, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include <OobTx.h>\r
16\r
17\r
18/**\r
19 Transmit out-of-band messages to the remote system.\r
20\r
21 @param [in] Argc The number of arguments\r
22 @param [in] Argv The argument value array\r
23\r
24 @retval 0 The application exited normally.\r
25 @retval Other An error occurred.\r
26**/\r
27int\r
28main(\r
29 int argc,\r
30 char ** argv\r
31 )\r
32{\r
33 int RetVal;\r
34 WSADATA WsaData;\r
35\r
36 //\r
37 // Initialize the WinSock layer\r
38 //\r
39 RetVal = WSAStartup ( MAKEWORD ( 2, 2 ), &WsaData );\r
40 if ( 0 == RetVal ) {\r
41 //\r
42 // Start the application\r
43 //\r
44 RetVal = OobTx ( argc, argv );\r
45\r
46 //\r
47 // Done with the WinSock layer\r
48 //\r
49 WSACleanup ( );\r
50 }\r
51\r
52 //\r
53 // Return the final result\r
54 //\r
55 return RetVal; \r
56}\r