使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Immanuel
/
btpd
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Add peer_full function.
master
Richard Nyberg
19 年前
父节点
3c0e61e112
当前提交
1c14af0ab4
共有
2 个文件被更改
,包括
7 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+6
-0
btpd/peer.c
+1
-0
btpd/peer.h
+ 6
- 0
btpd/peer.c
查看文件
@@ -550,3 +550,9 @@ peer_active_up(struct peer *p)
return (p->flags & (PF_P_WANT|PF_I_CHOKE)) == PF_P_WANT
|| p->npiece_msgs > 0;
}
int
peer_full(struct peer *p)
{
return p->npieces == p->n->tp->meta.npieces;
}
+ 1
- 0
btpd/peer.h
查看文件
@@ -60,5 +60,6 @@ int peer_wanted(struct peer *p);
int peer_laden(struct peer *p);
int peer_has(struct peer *p, uint32_t index);
int peer_leech_ok(struct peer *p);
int peer_full(struct peer *p);
#endif
撰写
预览
|
|
|
|
|
|
x
0
0
0:0
正在加载...
取消
保存