1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 23:06:14 -04:00

rename process ack segment

This commit is contained in:
v2ray 2016-07-04 14:17:11 +02:00
parent 165e323fab
commit 03ff683686
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ func (kcp *KCP) Input(data []byte) int {
kcp.lastPayloadTime = kcp.current
case *AckSegment:
kcp.HandleOption(seg.Opt)
kcp.sendingWorker.ProcessAckSegment(seg)
kcp.sendingWorker.ProcessSegment(seg)
kcp.lastPayloadTime = kcp.current
case *CmdOnlySegment:
kcp.HandleOption(seg.Opt)

View File

@ -273,7 +273,7 @@ func (this *SendingWorker) ProcessAck(number uint32) {
this.FindFirstUnacknowledged()
}
func (this *SendingWorker) ProcessAckSegment(seg *AckSegment) {
func (this *SendingWorker) ProcessSegment(seg *AckSegment) {
if this.remoteNextNumber < seg.ReceivingWindow {
this.remoteNextNumber = seg.ReceivingWindow
}