コード例 #1
0
ファイル: srvmain.c プロジェクト: Kvasshtain/uos-embedded
/*
 * Drop a specific server connection.
 */
void
GsClose(int fd)
{
	GsDropClient(fd);
	if(!persistent_mode && connectcount == 0)
		GsTerminate();
}
コード例 #2
0
ファイル: srvmain.c プロジェクト: Mellvik/elks
/*
 * Close the connection to the server.
 */
void
GsClose(void)
{
#if !NONETWORK
	GsDropClient(current_fd);
#endif
        if(--connectcount == 0)
		GsTerminate();
}