@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;
};
*/
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.
*/