VirtualBox

Changeset 49095 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2013 10:13:41 PM (11 years ago)
Author:
vboxsync
Message:

Rename PortForwardListener to NATNetworkListener (with more events to come).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r49042 r49095  
    120120typedef VECNATSERVICEPF::const_iterator CITERATORNATSERVICEPF;
    121121
    122 class PortForwardListener;
     122class NATNetworkListener;
    123123
    124124class VBoxNetLwipNAT: public VBoxNetBaseService
    125125{
    126     friend class PortForwardListener;
     126    friend class NATNetworkListener;
    127127  public:
    128128    VBoxNetLwipNAT();
     
    175175
    176176
    177 class PortForwardListener
     177class NATNetworkListener
    178178{
    179179public:
    180     PortForwardListener():m_pNAT(NULL){}
     180    NATNetworkListener():m_pNAT(NULL){}
    181181
    182182    HRESULT init(VBoxNetLwipNAT *pNAT)
     
    209209
    210210
    211 typedef ListenerImpl<PortForwardListener, VBoxNetLwipNAT *> PortForwardListenerImpl;
    212 
    213 
    214 VBOX_LISTENER_DECLARE(PortForwardListenerImpl)
     211typedef ListenerImpl<NATNetworkListener, VBoxNetLwipNAT *> NATNetworkListenerImpl;
     212
     213
     214VBOX_LISTENER_DECLARE(NATNetworkListenerImpl)
    215215
    216216
     
    875875    AssertComRC(hrc);
    876876
    877     ComObjPtr<PortForwardListenerImpl> listener;
     877    ComObjPtr<NATNetworkListenerImpl> listener;
    878878    hrc = listener.createObject();
    879879    AssertComRCReturn(hrc, VERR_INTERNAL_ERROR);
    880880
    881     hrc = listener->init(new PortForwardListener(), this);
     881    hrc = listener->init(new NATNetworkListener(), this);
    882882    AssertComRCReturn(hrc, VERR_INTERNAL_ERROR);
    883883
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette