Add const to fragmenter
This commit is contained in:
@@ -136,7 +136,7 @@ bool Fragment::operator==( const Fragment &x )
|
|||||||
&& ( initialized == x.initialized ) && ( contents == x.contents );
|
&& ( initialized == x.initialized ) && ( contents == x.contents );
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<Fragment> Fragmenter::make_fragments( Instruction &inst, int MTU )
|
vector<Fragment> Fragmenter::make_fragments( const Instruction &inst, int MTU )
|
||||||
{
|
{
|
||||||
if ( (inst.old_num() != last_instruction.old_num())
|
if ( (inst.old_num() != last_instruction.old_num())
|
||||||
|| (inst.new_num() != last_instruction.new_num())
|
|| (inst.new_num() != last_instruction.new_num())
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ namespace Network {
|
|||||||
last_instruction.set_old_num( -1 );
|
last_instruction.set_old_num( -1 );
|
||||||
last_instruction.set_new_num( -1 );
|
last_instruction.set_new_num( -1 );
|
||||||
}
|
}
|
||||||
vector<Fragment> make_fragments( Instruction &inst, int MTU );
|
vector<Fragment> make_fragments( const Instruction &inst, int MTU );
|
||||||
uint64_t last_ack_sent( void ) const { return last_instruction.ack_num(); }
|
uint64_t last_ack_sent( void ) const { return last_instruction.ack_num(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user