25 #ifndef SFML_TCPSOCKET_HPP
26 #define SFML_TCPSOCKET_HPP
31 #include <SFML/Network/Export.hpp>
32 #include <SFML/Network/Socket.hpp>
33 #include <SFML/System/Time.hpp>
66 unsigned short getLocalPort()
const;
92 unsigned short getRemotePort()
const;
140 Status send(
const void* data, std::size_t size);
156 Status send(
const void* data, std::size_t size, std::size_t& sent);
174 Status receive(
void* data, std::size_t size, std::size_t& received);
223 std::size_t SizeReceived;
224 std::vector<char> Data;
230 PendingPacket m_pendingPacket;
236 #endif // SFML_TCPSOCKET_HPP
Socket that listens to new TCP connections.
Specialized socket using the TCP protocol.
Status
Status codes that may be returned by socket functions.
Encapsulate an IPv4 network address.
Utility class to build blocks of data to transfer over the network.
static const Time Zero
Predefined "zero" time value.
Base class for all the socket types.