summaryrefslogtreecommitdiffstats
path: root/fnet/src/examples/ping/pingserver.cpp
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:15 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:15 +0200
commit06b2de2791183013dd22d185d137e00e2c83336d (patch)
treec118f2bab178b47c3b98fcfff420659d8ecb9bdd /fnet/src/examples/ping/pingserver.cpp
parente5e27a0af2c861203e573f66c15967fc5020c688 (diff)
add override in fnet module
Diffstat (limited to 'fnet/src/examples/ping/pingserver.cpp')
-rw-r--r--fnet/src/examples/ping/pingserver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fnet/src/examples/ping/pingserver.cpp b/fnet/src/examples/ping/pingserver.cpp
index 905a1dc656d..173e627ac23 100644
--- a/fnet/src/examples/ping/pingserver.cpp
+++ b/fnet/src/examples/ping/pingserver.cpp
@@ -11,15 +11,15 @@ class PingServer : public FNET_IServerAdapter,
public FastOS_Application
{
public:
- bool InitAdminChannel(FNET_Channel *) { return false; }
- bool InitChannel(FNET_Channel *channel, uint32_t)
+ bool InitAdminChannel(FNET_Channel *) override { return false; }
+ bool InitChannel(FNET_Channel *channel, uint32_t) override
{
channel->SetContext(FNET_Context(channel));
channel->SetHandler(this);
return true;
}
- HP_RetCode HandlePacket(FNET_Packet *packet, FNET_Context context)
+ HP_RetCode HandlePacket(FNET_Packet *packet, FNET_Context context) override
{
if (packet->GetPCODE() == PCODE_PING_REQUEST) {
fprintf(stderr, "Got ping request, sending ping reply\n");
@@ -29,7 +29,7 @@ public:
return FNET_FREE_CHANNEL;
}
- int Main();
+ int Main() override;
};