Impliment the guts for the following class-
class uPnP_Port {
? ? SOCKET s;
? ? char* ExternalIP;
? ? BOOL Status;
? ? uPnP_Port(u_short Port_To_Open);
? ? ~uPnP_Port();
? ? };
the class must open the port specified in the constructor on the default router and return the external IP address of the router such that a remote computer can connect on the specified port and Ip address to the computer on which the application is running.? The SOCKET should be a blocking TCP/IP connection ready to be passed to listen.? Status should reflect whether the port was opened successfully (TRUE) or not (FALSE).
All code must be in C++ for Visual Studio 2005 or 2008 and must compile on 2008 Express.?
You may not use MFC, STL, precompiled headers, custom libraries, or GPL'd code.? This is to replace code in an existing application so you may not modify the class in any way.? Just write the constructor function.
## Deliverables
Must run on WindowsXP 32 and 64 bit.