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