Files
Np_Term/include/socket/tcp_socket.h
2025-05-31 03:19:58 +09:00

19 lines
431 B
C++

#pragma once
#include "socket.h"
namespace Network {
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