Added Raw socket type and SocketProtocol to implement ICMP
Renamed TcpSocketBuilder to SocketBuilder
Removed UdpSocketBuilder (merged with SocketBuilder)
This commit is contained in:
TheDoctor
2019-10-21 23:29:29 +01:00
parent 5f13265c5d
commit 03fad4e3d3
14 changed files with 280 additions and 336 deletions

View File

@ -10,7 +10,7 @@ namespace std::net
{
public:
UdpSocket(Socket *soc);
UdpSocket(SocketProtocol protocol = SocketProtocol::IPv4);
UdpSocket(AddressFamily af = AddressFamily::IPv4);
bool Bind(const IPAddress &addr);
bool SendTo(const byte* data, int32_t count, int32_t& sent, const IPAddress& addrDest);