X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a98423eb038738b5c4c76c575435034ee8b7d56..6d62b2e2b1d3360461ed3d28e6a2be1474e99ae4:/interface/wx/socket.h diff --git a/interface/wx/socket.h b/interface/wx/socket.h index 0c7b0eceae..621df49adf 100644 --- a/interface/wx/socket.h +++ b/interface/wx/socket.h @@ -257,12 +257,12 @@ public: @return @true on success, @false if something goes wrong (invalid @a service). */ - virtual bool Service(unsigned short service); + virtual bool Service(unsigned short service) = 0; /** Returns the current service. */ - virtual unsigned short Service() const; + virtual unsigned short Service() const = 0; }; @@ -712,6 +712,13 @@ public: */ bool GetPeer(wxSockAddress& addr) const; + /** + Return the socket timeout in seconds. + + The timeout can be set using SetTimeout() and is 10 minutes by default. + */ + long GetTimeout() const; + /** Returns @true if the socket is connected. */