Skip to content

Commit

Permalink
Hide MultipackerSender/MultipacketReceiver methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 10, 2015
1 parent a0d570a commit 3942eea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/xrNetServer/NET_Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ MultipacketSender
MultipacketSender();
virtual ~MultipacketSender() {}

protected:
void SendPacket( const void* packet_data, u32 packet_sz, u32 flags, u32 timeout );
void FlushSendBuffer( u32 timeout );


protected:

virtual void _SendTo_LL( const void* data, u32 size, u32 flags, u32 timeout ) =0;


Expand Down Expand Up @@ -85,11 +82,8 @@ MultipacketReciever

virtual ~MultipacketReciever() {}

void RecievePacket( const void* packet_data, u32 packet_sz, u32 param=0 );


protected:

void RecievePacket( const void* packet_data, u32 packet_sz, u32 param=0 );
virtual void _Recieve( const void* data, u32 data_size, u32 param ) =0;
};

Expand Down
4 changes: 2 additions & 2 deletions src/xrNetServer/NET_Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void IPureServer::Flush_Clients_Buffers ()
{
static void FlushBuffer(IClient* client)
{
client->MultipacketSender::FlushSendBuffer(0);
client->FlushSendBuffer(0);
}
};

Expand All @@ -596,7 +596,7 @@ void IPureServer::SendTo_Buf(ClientID id, void* data, u32 size, u32 dwFlags, u32
IClient* tmp_client = net_players.GetFoundClient(
ClientIdSearchPredicate(id));
VERIFY(tmp_client);
tmp_client->MultipacketSender::SendPacket(data, size, dwFlags, dwTimeout);
tmp_client->SendPacket(data, size, dwFlags, dwTimeout);
}


Expand Down
4 changes: 4 additions & 0 deletions src/xrNetServer/NET_Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ IClient : public MultipacketSender

IPureServer* server;

public:
using MultipacketSender::SendPacket;
using MultipacketSender::FlushSendBuffer;

private:

virtual void _SendTo_LL( const void* data, u32 size, u32 flags, u32 timeout );
Expand Down

0 comments on commit 3942eea

Please sign in to comment.