void TcpSocket::close() { if(!isAvaliable()) return; ::close(m_fd); onClosed(this); m_fd = -1; }
bool BranchInfo::isDownloadable() { return isAvaliable() && !HasAnyFlags(m_uiFlags, BF_NORELEASES); }
bool BranchInfo::isPreOrder() { return isAvaliable() && HasAllFlags(m_uiFlags, BF_PREORDER); }