Beispiel #1
0
void TcpSocket::close()
{
    if(!isAvaliable())
        return;

    ::close(m_fd);
    onClosed(this);
    m_fd = -1;
}
Beispiel #2
0
bool BranchInfo::isDownloadable()
{
	return isAvaliable() && !HasAnyFlags(m_uiFlags, BF_NORELEASES);
}
Beispiel #3
0
bool  BranchInfo::isPreOrder()
{
	return isAvaliable() && HasAllFlags(m_uiFlags, BF_PREORDER);
}