Fixed Linux socket implementation again.
This commit is contained in:
parent
df260808b9
commit
8002e1f1f8
@ -65,12 +65,12 @@ bool removeSocketFlags(int handle, int flags) noexcept
|
|||||||
|
|
||||||
long osRecv(int socket, std::span<std::uint8_t> buffer, int flags)
|
long osRecv(int socket, std::span<std::uint8_t> buffer, int flags)
|
||||||
{
|
{
|
||||||
return static_cast<long>(recv(socket, buffer.data(), buffer.size(), flags);
|
return static_cast<long>(recv(socket, buffer.data(), buffer.size(), flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
long osSend(int socket, std::span<const std::uint8_t> buffer, int flags)
|
long osSend(int socket, std::span<const std::uint8_t> buffer, int flags)
|
||||||
{
|
{
|
||||||
return static_cast<long>(send(handle_, buffer.data(), buffer.size(), flags));
|
return static_cast<long>(send(socket, buffer.data(), buffer.size(), flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
int osCreateSocket(int domain, int type, int protocol)
|
int osCreateSocket(int domain, int type, int protocol)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user