mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +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
|
@ -4,7 +4,6 @@
|
|||
#include <AK/Assertions.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/NetworkOrdered.h>
|
||||
#include <Kernel/StdLib.h>
|
||||
|
||||
enum class IPv4Protocol : word {
|
||||
ICMP = 1,
|
||||
|
@ -19,7 +18,10 @@ public:
|
|||
IPv4Address() { }
|
||||
IPv4Address(const byte data[4])
|
||||
{
|
||||
memcpy(m_data, data, 4);
|
||||
m_data[0] = data[0];
|
||||
m_data[1] = data[1];
|
||||
m_data[2] = data[2];
|
||||
m_data[3] = data[3];
|
||||
}
|
||||
IPv4Address(byte a, byte b, byte c, byte d)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue