mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
CSocket: Share code between connect() overloads
Both overloads should know how to set up a notifier callback in case we get EINPROGRESS from connect(). It might be even better to merge the connect() overloads into a single function..
This commit is contained in:
parent
1427c20f6a
commit
99970d7d4b
2 changed files with 23 additions and 27 deletions
|
@ -50,6 +50,8 @@ protected:
|
|||
|
||||
private:
|
||||
virtual bool open(CIODevice::OpenMode) override { ASSERT_NOT_REACHED(); }
|
||||
bool common_connect(const struct sockaddr*, socklen_t);
|
||||
|
||||
Type m_type { Type::Invalid };
|
||||
OwnPtr<CNotifier> m_notifier;
|
||||
OwnPtr<CNotifier> m_read_notifier;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue