summaryrefslogtreecommitdiff
path: root/context.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:07:04 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:07:04 -0400
commit8bb7fa64a9d1abed9b563eca9f95d3ac1a8b6cdc (patch)
treeeae893d13e2fb0ead6373488177a0a3c38dfdf5c /context.h
parent8ec0ae94e0a82915d336737b32268978be638524 (diff)
T{Tcp,}Socket: Make `send(u8 *, size_t)` return the proper type
Diffstat (limited to 'context.h')
-rw-r--r--context.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/context.h b/context.h
index 5bdb45c..559f196 100644
--- a/context.h
+++ b/context.h
@@ -1126,7 +1126,7 @@ public:
virtual short close() = 0;
virtual void recv() = 0;
virtual short send(u8 *data) = 0;
- virtual int send(u8 *data, size_t size) = 0;
+ virtual short send(u8 *data, size_t size) = 0;
int resolve_domain(char *domain);
void set_ip_address(u32 addr);
@@ -1186,7 +1186,7 @@ public:
virtual short close() override;
virtual void recv() override;
virtual short send(u8 *data) override;
- virtual int send(u8 *data, size_t size) override;
+ virtual short send(u8 *data, size_t size) override;
short stat();
void some_stub();