MCPcopy Create free account
hub / github.com/ImageEngine/cortex / DisplayDriverServer

Method DisplayDriverServer

src/IECoreImage/DisplayDriverServer.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220};
221
222DisplayDriverServer::DisplayDriverServer( DisplayDriverServer::Port portNumber ) :
223 m_data( nullptr )
224{
225 m_data = new DisplayDriverServer::PrivateData( portNumber );
226
227 DisplayDriverServer::SessionPtr newSession( new DisplayDriverServer::Session( m_data->m_service, m_data->m_mergeMap ) );
228 m_data->m_acceptor.async_accept( newSession->socket(),
229 boost::bind( &DisplayDriverServer::handleAccept, this, newSession,
230 boost::asio::placeholders::error));
231 fixSocketFlags( m_data->m_acceptor.native_handle() );
232 std::thread newThread( boost::bind(&DisplayDriverServer::serverThread, this) );
233 m_data->m_thread.swap( newThread );
234}
235
236DisplayDriverServer::~DisplayDriverServer()
237{

Callers 6

testPortNumberMethod · 0.80
testPortRangeMethod · 0.80
testPortRangeRegistryMethod · 0.80
testMergeMapMethod · 0.80
setUpMethod · 0.80
testUsedPortExceptionMethod · 0.80

Calls 2

fixSocketFlagsFunction · 0.85
bindFunction · 0.50

Tested by 6

testPortNumberMethod · 0.64
testPortRangeMethod · 0.64
testPortRangeRegistryMethod · 0.64
testMergeMapMethod · 0.64
setUpMethod · 0.64
testUsedPortExceptionMethod · 0.64