MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / IsReadyToRead

Method IsReadyToRead

src/Nazara/Network/SocketPoller.cpp:74–79  ·  view source on GitHub ↗

! * \brief Checks if a specific socket is ready to read data * * This function allows you to read the results of the last Wait operation and if a specific socket is ready to read (has incoming data). * * A socket in the ready to read state (with the exception of TcpServer) has incoming data and can be read without blocking. * * \remark You must call Wait before using this function in order

Source from the content-addressed store, hash-verified

72 * \see Wait
73 */
74 bool SocketPoller::IsReadyToRead(const AbstractSocket& socket) const
75 {
76 NazaraAssert(IsRegistered(socket), "Socket is not registered in the poller");
77
78 return m_impl->IsReadyToRead(socket.GetNativeHandle());
79 }
80
81 /*!
82 * \brief Checks if a specific socket is ready to write data

Callers 2

ServiceMethod · 0.45
SocketPoller.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected