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