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;
141 Status send(
const void* data, std::size_t size);
157 Status send(
const void* data, std::size_t size, std::size_t& sent);
175 Status receive(
void* data, std::size_t size, std::size_t& received);
224 std::size_t SizeReceived;
225 std::vector<char> Data;
231 PendingPacket m_pendingPacket;
237 #endif // SFML_TCPSOCKET_HPP
static const Time Zero
Predefined "zero" time value.
Status
Status codes that may be returned by socket functions.
Base class for all the socket types.
Encapsulate an IPv4 network address.
Utility class to build blocks of data to transfer over the network.
Specialized socket using the TCP protocol.
Socket that listens to new TCP connections.