MCPcopy Create free account
hub / github.com/SFML/SFML / onStart

Method onStart

examples/voip/Client.cpp:56–65  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// \see SoundRecorder::onStart ///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

54 ///
55 ////////////////////////////////////////////////////////////
56 bool onStart() override
57 {
58 if (m_socket.connect(m_host, m_port) == sf::Socket::Status::Done)
59 {
60 std::cout << "Connected to server " << m_host << std::endl;
61 return true;
62 }
63
64 return false;
65 }
66
67 ////////////////////////////////////////////////////////////
68 /// \see SoundRecorder::onProcessSamples

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected