apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cheyne" <ache...@gridironsoftware.com>
Subject Stopping a Listening Server socket?
Date Tue, 10 Jun 2003 15:19:17 GMT
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 <http://www.gridironsoftware.com/> 
 
 

Mime
View raw message