mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
GSocket: Add a connect() overload that takes a hostname instead of an IP.
This commit is contained in:
parent
ff93d3f362
commit
76ce68ac48
2 changed files with 15 additions and 0 deletions
|
@ -37,6 +37,7 @@ public:
|
|||
enum class Type { Invalid, TCP, UDP };
|
||||
virtual ~GSocket() override;
|
||||
|
||||
bool connect(const String& hostname, int port);
|
||||
bool connect(const GSocketAddress&, int port);
|
||||
|
||||
ByteBuffer receive(int max_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue