take const address objects in wxSocketClient::Connect() and wxSocketBase::SetLocal()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-06 02:21:39 +00:00
parent 4f6c80fecd
commit 72ac4e888a
3 changed files with 20 additions and 14 deletions

View File

@@ -272,8 +272,8 @@ public:
@see WaitOnConnect(), wxSocketBase::SetNotify,
wxSocketBase::Notify
*/
bool Connect(wxSockAddress& address, bool wait = true);
bool Connect(wxSockAddress& address, wxSockAddress& local,
bool Connect(const wxSockAddress& address, bool wait = true);
bool Connect(const wxSockAddress& address, const wxSockAddress& local,
bool wait = true);
//@}
@@ -813,7 +813,7 @@ public:
a local port is set for a wxSocketClient,
@b bind will be called before @b connect.
*/
bool SetLocal(wxIPV4address& local);
bool SetLocal(const wxIPV4address& local);
/**
SetNotify specifies which socket events are to be sent to the event handler.