mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibCore: Change the signature of Socket::send() to use Span.
This commit is contained in:
parent
4709b700bd
commit
21de20825a
3 changed files with 6 additions and 5 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <AK/Span.h>
|
||||
#include <LibCore/IODevice.h>
|
||||
#include <LibCore/SocketAddress.h>
|
||||
|
||||
|
@ -50,7 +51,7 @@ public:
|
|||
bool connect(const SocketAddress&);
|
||||
|
||||
ByteBuffer receive(int max_size);
|
||||
bool send(const ByteBuffer&);
|
||||
bool send(ReadonlyBytes);
|
||||
|
||||
bool is_connected() const { return m_connected; }
|
||||
void set_blocking(bool blocking);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue