25 #ifndef SFML_UDPSOCKET_HPP
26 #define SFML_UDPSOCKET_HPP
31 #include <SFML/Network/Export.hpp>
32 #include <SFML/Network/Socket.hpp>
33 #include <SFML/Network/IpAddress.hpp>
54 MaxDatagramSize = 65507
74 unsigned short getLocalPort()
const;
126 Status send(
const void* data, std::size_t size,
const IpAddress& remoteAddress,
unsigned short remotePort);
149 Status receive(
void* data, std::size_t size, std::size_t& received,
IpAddress& remoteAddress,
unsigned short& remotePort);
167 Status send(
Packet& packet,
const IpAddress& remoteAddress,
unsigned short remotePort);
184 Status receive(
Packet& packet,
IpAddress& remoteAddress,
unsigned short& remotePort);
191 std::vector<char> m_buffer;
197 #endif // SFML_UDPSOCKET_HPP
Encapsulate an IPv4 network address.
Utility class to build blocks of data to transfer over the network.
Specialized socket using the UDP protocol.
Base class for all the socket types.
static const IpAddress Any
Value representing any address (0.0.0.0)