Fix fd ownership

This commit is contained in:
Nullptr
2023-01-31 15:04:01 +08:00
parent b8678720fb
commit d7877ea959
5 changed files with 28 additions and 28 deletions

View File

@@ -10,6 +10,8 @@ namespace socket_utils {
ssize_t xwrite(int fd, const void *buf, size_t count);
uint8_t read_u8(int fd);
size_t read_usize(int fd);
std::string read_string(int fd);
@@ -19,6 +21,4 @@ namespace socket_utils {
int recv_fd(int fd);
bool write_usize(int fd, size_t val);
uint8_t read_u8(int fd);
}