windows-compitable 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user