From: Simon H. <sh...@us...> - 2005-05-25 06:32:16
|
Update of /cvsroot/openh323/contrib/UPnP/sample In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21331/UPnP/sample Modified Files: H323_uPNP.h simple.dsp Log Message: More tidy ups Index: H323_uPNP.h =================================================================== RCS file: /cvsroot/openh323/contrib/UPnP/sample/H323_uPNP.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** H323_uPNP.h 24 May 2005 11:25:31 -0000 1.2 --- H323_uPNP.h 25 May 2005 06:32:06 -0000 1.3 *************** *** 29,32 **** --- 29,35 ---- * * $Log$ + * Revision 1.3 2005/05/25 06:32:06 shorne + * More tidy ups + * * Revision 1.2 2005/05/24 11:25:31 shorne * Tidy up and bulletproof *************** *** 53,60 **** --- 56,81 ---- ~H323_uPNP(); + /** OnExtIPChange Event fires when ever there is a change in the + WAN IPAddress and is designed to send an Event to the H323Endpoint + to Deregister/Reregister with the Gatekeeper. + */ virtual void OnExtIPChange(PString ExtIP, WORD TCPNatPort); + /** OnIGDDeviceFound Event fires when the IGD is first detected + and return the UPNP common name of the Device + */ virtual void OnIGDDeviceFound(PString Device); + /** OnPortOpen Event fires when a NatPort has been successfully opened + on the IGD and returns the actual NAT port opened. + CallBack of the OpenPort(); + */ + virtual void OnPortOpen(BOOL isUDP, WORD NatPort) + { cout << "Port Opened " << NatPort << " UDP " << isUDP << endl;}; + + /** OnPortClosed Event fires when a IGD NAT port Map is successfully deleted. + */ + virtual void OnPortClosed(BOOL isUDP, WORD NatPort) + { cout << "Port Closed " << NatPort << " UDP " << isUDP << endl; }; protected: Index: simple.dsp =================================================================== RCS file: /cvsroot/openh323/contrib/UPnP/sample/simple.dsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** simple.dsp 25 Apr 2005 20:19:18 -0000 1.1 --- simple.dsp 25 May 2005 06:32:06 -0000 1.2 *************** *** 80,84 **** LINK32=link.exe # ADD BASE LINK32 ptclib.lib ptlib.lib comdlg32.lib winspool.lib wsock32.lib mpr.lib kernel32.lib user32.lib gdi32.lib shell32.lib advapi32.lib /nologo /subsystem:console /machine:I386 ! # ADD LINK32 openh323n.lib ptclib.lib ptlib.lib ../lib/vsUPNP.lib comdlg32.lib winspool.lib wsock32.lib mpr.lib kernel32.lib user32.lib gdi32.lib shell32.lib advapi32.lib /nologo /subsystem:console /machine:I386 !ENDIF --- 80,84 ---- LINK32=link.exe # ADD BASE LINK32 ptclib.lib ptlib.lib comdlg32.lib winspool.lib wsock32.lib mpr.lib kernel32.lib user32.lib gdi32.lib shell32.lib advapi32.lib /nologo /subsystem:console /machine:I386 ! # ADD LINK32 openh323n.lib ptclib.lib ptlib.lib ../lib/vsUPNPs.lib comdlg32.lib winspool.lib wsock32.lib mpr.lib kernel32.lib user32.lib gdi32.lib shell32.lib advapi32.lib /nologo /subsystem:console /machine:I386 !ENDIF |