windows 살짝 분리!
This commit is contained in:
@@ -15,10 +15,14 @@ void IOCP::registerSocket(SOCKET sock) {
|
||||
#endif
|
||||
}
|
||||
|
||||
int IOCP::recv(void* __restrict __buf, size_t __n, int __flags) {
|
||||
int IOCP::recv(Chattr::IOCPPASSINDATA* data) {
|
||||
DWORD recvbytes = 0, flags = 0;
|
||||
return ::WSARecv(data->socket.sock, &data->wsabuf, 1, &recvbytes, &flags, &data->overlapped, NULL);
|
||||
}
|
||||
|
||||
int IOCP::send(const void* __buf, size_t __n, int __flags) {
|
||||
int IOCP::send(Chattr::IOCPPASSINDATA* data, int __flags) {
|
||||
DWORD sendbytes = 0;
|
||||
return ::WSASend(data->socket.sock, &data->wsabuf, 1, &sendbytes, __flags, &data->overlapped, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user