mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:07:34 +00:00
LibGUI: Add GTCPSocket and base class GSocket (inherits from GIODevice.)
And use these to do the line-by-line reading automagically instead of having that logic in IRCClient. This will definitely come in handy.
This commit is contained in:
parent
d466f2634d
commit
8e3d0a23d5
12 changed files with 267 additions and 86 deletions
10
LibGUI/GTCPSocket.h
Normal file
10
LibGUI/GTCPSocket.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <LibGUI/GSocket.h>
|
||||
|
||||
class GTCPSocket final : public GSocket {
|
||||
public:
|
||||
explicit GTCPSocket(GObject* parent);
|
||||
virtual ~GTCPSocket() override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue