Make SetLocal actually work instead of crashing immediately; due to required longevity of the item to make it from SetLocal to Connect, we need to use a specifc address type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2006-02-28 02:04:29 +00:00
parent fb3234e549
commit 30bbf68d3a
3 changed files with 12 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ public:
// addresses
virtual bool GetLocal(wxSockAddress& addr_man) const;
virtual bool GetPeer(wxSockAddress& addr_man) const;
virtual bool SetLocal(wxSockAddress& local);
virtual bool SetLocal(wxIPV4address& local);
// base IO
virtual bool Close();
@@ -202,6 +202,7 @@ private:
wxList m_states; // stack of states
bool m_interrupt; // interrupt ongoing wait operations?
bool m_beingDeleted; // marked for delayed deletion?
wxIPV4address m_localAddress; // bind to local address?
// pushback buffer
void *m_unread; // pushback buffer