net: Fix usages of send_packet

This commit is contained in:
Joshua Scott 2018-04-11 02:55:01 +01:00
parent eeb5b5c14b
commit 00b404f132
1 changed files with 3 additions and 6 deletions

View File

@ -90,8 +90,7 @@ namespace net
// Send a SERVER_HELLO packet to the client // Send a SERVER_HELLO packet to the client
const control::ServerHello hello(m_id, timestamp, milliseconds); const control::ServerHello hello(m_id, timestamp, milliseconds);
send_packet<control::ServerHello>( send_packet(true, control::Opcode::SERVER_HELLO, hello);
true, control::Opcode::SERVER_HELLO, hello);
} }
} }
@ -176,8 +175,7 @@ namespace net
// Send a CLIENT_HELLO packet to the server // Send a CLIENT_HELLO packet to the server
const control::ClientHello hello(m_id, timestamp, milliseconds); const control::ClientHello hello(m_id, timestamp, milliseconds);
send_packet<control::ClientHello>( send_packet(true, control::Opcode::CLIENT_HELLO, hello);
true, control::Opcode::CLIENT_HELLO, hello);
} }
catch (parse_error &e) catch (parse_error &e)
{ {
@ -232,8 +230,7 @@ namespace net
} }
// Send the response // Send the response
send_packet<control::Ping>( send_packet(true, control::Opcode::PING_RSP, ping);
true, control::Opcode::PING_RSP, ping);
} }
catch (parse_error &e) catch (parse_error &e)
{ {