MCPcopy Create free account
hub / github.com/crownengine/crown / get

Method get

src/core/network/socket.cpp:421–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421TCPSocket SocketSet::get(u32 index)
422{
423 TCPSocket socket;
424#if CROWN_PLATFORM_WINDOWS
425 CE_ENSURE(index < _priv->fdset.fd_count);
426 socket._priv->socket = _priv->fdset.fd_array[index];
427#else
428 CE_ENSURE((int)index < FD_SETSIZE);
429 socket._priv->socket = (int)index;
430#endif
431 return socket;
432}
433
434SelectResult SocketSet::select(u32 timeout_ms)
435{

Callers 5

main_loopMethod · 0.45
refreshMethod · 0.45
run_input_threadMethod · 0.45
loaderFunction · 0.45
reloadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected