Hello,
 
    I have an APR Server socket that is listening for connections in a separate Thread. How do I stop this Socket from listening (from another thread, for example) so I can clean up properly before exiting?
 
Thanks,
Andrew
 
PS: Code snippet:
 
      /* Wait for a client socket connection. How do we cancel this? */
   rc = apr_socket_listen( m_socket, 5 );
   if ( rc == APR_SUCCESS )
   {
     rc = apr_socket_accept( &clientSock, m_socket, m_context );
     //got a socket
     break;
   }
 
Andrew Cheyne
Senior Software Developer
GridIron Software
613.226.9445 ext. 285
acheyne@gridironsoftware.com
http://www.gridironsoftware.com