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;
137 Status send(
const void* data, std::size_t size);
155 Status receive(
void* data, std::size_t size, std::size_t& received);
200 std::size_t SizeReceived;
201 std::vector<char> Data;
207 PendingPacket m_pendingPacket;
213 #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.