tcp/udp 추가, todo:iocp openssl 지원하도록 업데이트하기
This commit is contained in:
18
include/socket/tcp_socket.h
Normal file
18
include/socket/tcp_socket.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user