windows-compitable 수정

This commit is contained in:
2025-04-28 11:31:49 +09:00
parent 41c75b9dca
commit 4cb1d22fe6
3 changed files with 5 additions and 5 deletions

View File

@@ -28,14 +28,14 @@ void TCPSocket::connect(Chattr::Address& serveraddr) {
}
int TCPSocket::recv(void *__restrict __buf, size_t __n, int __flags) {
int retVal = ::recv(sock_, __buf, __n, __flags);
int retVal = ::recv(sock_, (char *)__buf, __n, __flags);
if (retVal == SOCKET_ERROR)
log::error("recv()");
return retVal;
}
int TCPSocket::send(const void *__buf, size_t __n, int __flags) {
int retVal = ::send(sock_, __buf, __n, __flags);
int retVal = ::send(sock_, (char*)__buf, __n, __flags);
if (retVal == SOCKET_ERROR)
log::error("send()");
return retVal;