18 lines
426 B
C++
18 lines
426 B
C++
#pragma once
|
|
#include "Socket.hpp"
|
|
|
|
namespace Chattr {
|
|
|
|
class TCPSocket : public Socket {
|
|
public:
|
|
using Socket::Socket;
|
|
using Socket::init;
|
|
void init(int domain);
|
|
void listen(int __n);
|
|
void accept(TCPSocket& newSock, Address& addr);
|
|
void connect(Chattr::Address& serveraddr);
|
|
int recv(void *__restrict __buf, size_t __n, int __flags);
|
|
int send(const void *__buf, size_t __n, int __flags);
|
|
};
|
|
|
|
} |