Files
Np_Term/include/socket/tcp_socket.h

19 lines
438 B
C++

#pragma once
#include "udp_socket.h"
namespace Socket {
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);
};
}