iocp 구현하기

This commit is contained in:
2025-05-31 03:19:58 +09:00
parent 466a80f02b
commit a65483a9c3
55 changed files with 608 additions and 683 deletions

View File

@@ -1,18 +1,18 @@
#pragma once
#include "udp_socket.h"
#include "socket.h"
namespace Socket {
namespace Network {
class TCPSocket : public UDPSocket {
public:
using UDPSocket::UDPSocket;
using UDPSocket::init;
int init(int domain);
int listen(int __n);
void accept(TCPSocket& newSock, Address& addr);
int connect(Socket::Address& serveraddr);
int recv(void *__restrict __buf, size_t __n, int __flags);
int send(const void *__buf, size_t __n, int __flags);
class TCPSocket : public Socket {
public:
using Socket::init;
using Socket::Socket;
int init(int domain);
int listen(int __n);
void accept(TCPSocket& newSock, Address& addr);
int connect(Network::Address& serveraddr);
int recv(void* __restrict __buf, size_t __n, int __flags);
int send(const void* __buf, size_t __n, int __flags);
};
}
} // namespace Network