]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/socket.h
include the right header for timeval
[wxWidgets.git] / include / wx / socket.h
index f04e4b2f1e596ef30fa916305236bf48d9fd6100..61073626585f6280f4ac71dd10f10d3b9be71f62 100644 (file)
@@ -160,6 +160,7 @@ public:
   wxSocketFlags GetFlags() const { return m_flags; }
   void SetFlags(wxSocketFlags flags);
   void SetTimeout(long seconds);
+  long GetTimeout() const { return m_timeout; }
 
   bool GetOption(int level, int optname, void *optval, int *optlen);
   bool SetOption(int level, int optname, const void *optval, int optlen);
@@ -194,8 +195,8 @@ private:
   friend class wxDatagramSocket;
 
   // low level IO
-  wxUint32 _Read(void* buffer, wxUint32 nbytes);
-  wxUint32 _Write(const void *buffer, wxUint32 nbytes);
+  wxUint32 DoRead(void* buffer, wxUint32 nbytes);
+  wxUint32 DoWrite(const void *buffer, wxUint32 nbytes);
 
   // wait until the given flags are set for this socket or the given timeout
   // (or m_timeout) expires