mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 12:32:12 +02:00
Fix lines longer than 120 columns
This commit is contained in:
parent
d166e6d8c3
commit
fb8e822fa8
2 changed files with 12 additions and 3 deletions
|
@ -95,8 +95,16 @@ LimitedNodeList::LimitedNodeList(unsigned short socketListenPort, unsigned short
|
|||
|
||||
// set &PacketReceiver::handleVerifiedPacket as the verified packet callback for the udt::Socket
|
||||
using std::placeholders::_1;
|
||||
_nodeSocket.setPacketHandler([this](std::unique_ptr<udt::Packet> packet) { _packetReceiver->handleVerifiedPacket(std::move(packet)); });
|
||||
_nodeSocket.setPacketListHandler([this](std::unique_ptr<udt::PacketList> packetList) { _packetReceiver->handleVerifiedPacketList(std::move(packetList)); });
|
||||
_nodeSocket.setPacketHandler(
|
||||
[this](std::unique_ptr<udt::Packet> packet) {
|
||||
_packetReceiver->handleVerifiedPacket(std::move(packet));
|
||||
}
|
||||
);
|
||||
_nodeSocket.setPacketListHandler(
|
||||
[this](std::unique_ptr<udt::PacketList> packetList) {
|
||||
_packetReceiver->handleVerifiedPacketList(std::move(packetList));
|
||||
}
|
||||
);
|
||||
|
||||
// set our isPacketVerified method as the verify operator for the udt::Socket
|
||||
_nodeSocket.setPacketFilterOperator(std::bind(&LimitedNodeList::isPacketVerified, this, _1));
|
||||
|
|
|
@ -177,7 +177,8 @@ UDTTest::UDTTest(int& argc, char** argv) :
|
|||
// this is a receiver - in case there are ordered packets (messages) being sent to us make sure that we handle them
|
||||
// so that they can be verified
|
||||
using std::placeholders::_1;
|
||||
_socket.setPacketListHandler([this](std::unique_ptr<udt::PacketList> packetList) { handlePacketList(std::move(packetList)); });
|
||||
_socket.setPacketListHandler(
|
||||
[this](std::unique_ptr<udt::PacketList> packetList) { handlePacketList(std::move(packetList)); });
|
||||
}
|
||||
|
||||
// the sender reports stats every 100 milliseconds, unless passed a custom value
|
||||
|
|
Loading…
Reference in a new issue