mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
Fix Uninit in GxsTunnelPeerInfo
This commit is contained in:
parent
918513671a
commit
308fa78307
@ -121,9 +121,9 @@ class p3GxsTunnelService: public RsGxsTunnelService, public RsTurtleClientServic
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit p3GxsTunnelService(RsGixs *pids) ;
|
explicit p3GxsTunnelService(RsGixs *pids) ;
|
||||||
virtual void connectToTurtleRouter(p3turtle *) ;
|
virtual void connectToTurtleRouter(p3turtle *) override;
|
||||||
|
|
||||||
uint16_t serviceId() const { return RS_SERVICE_TYPE_GXS_TUNNEL ; }
|
uint16_t serviceId() const override { return RS_SERVICE_TYPE_GXS_TUNNEL ; }
|
||||||
|
|
||||||
// Creates the invite if the public key of the distant peer is available.
|
// Creates the invite if the public key of the distant peer is available.
|
||||||
// Om success, stores the invite in the map above, so that we can respond to tunnel requests.
|
// Om success, stores the invite in the map above, so that we can respond to tunnel requests.
|
||||||
@ -137,8 +137,8 @@ public:
|
|||||||
|
|
||||||
// derived from p3service
|
// derived from p3service
|
||||||
|
|
||||||
virtual int tick();
|
virtual int tick() override;
|
||||||
virtual RsServiceInfo getServiceInfo();
|
virtual RsServiceInfo getServiceInfo() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void flush() ;
|
void flush() ;
|
||||||
@ -147,15 +147,15 @@ private:
|
|||||||
class GxsTunnelPeerInfo
|
class GxsTunnelPeerInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GxsTunnelPeerInfo() : last_contact(0), last_keep_alive_sent(0), status(0), direction(0)
|
GxsTunnelPeerInfo()
|
||||||
|
: last_contact(0), last_keep_alive_sent(0), status(0), direction(0)
|
||||||
|
, total_sent(0), total_received(0)
|
||||||
#ifndef V07_NON_BACKWARD_COMPATIBLE_CHANGE_004
|
#ifndef V07_NON_BACKWARD_COMPATIBLE_CHANGE_004
|
||||||
, accepts_fast_turtle_items(false)
|
, accepts_fast_turtle_items(false)
|
||||||
|
, already_probed_for_fast_items(false)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
memset(aes_key, 0, GXS_TUNNEL_AES_KEY_SIZE);
|
memset(aes_key, 0, GXS_TUNNEL_AES_KEY_SIZE);
|
||||||
|
|
||||||
total_sent = 0 ;
|
|
||||||
total_received = 0 ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rstime_t last_contact ; // used to keep track of working connexion
|
rstime_t last_contact ; // used to keep track of working connexion
|
||||||
@ -213,10 +213,10 @@ private:
|
|||||||
|
|
||||||
// Overloaded from RsTurtleClientService
|
// Overloaded from RsTurtleClientService
|
||||||
|
|
||||||
virtual bool handleTunnelRequest(const RsFileHash &hash,const RsPeerId& peer_id) ;
|
virtual bool handleTunnelRequest(const RsFileHash &hash,const RsPeerId& peer_id) override;
|
||||||
virtual void receiveTurtleData(const RsTurtleGenericTunnelItem *item,const RsFileHash& hash,const RsPeerId& virtual_peer_id,RsTurtleGenericTunnelItem::Direction direction) ;
|
virtual void receiveTurtleData(const RsTurtleGenericTunnelItem *item,const RsFileHash& hash,const RsPeerId& virtual_peer_id,RsTurtleGenericTunnelItem::Direction direction) override;
|
||||||
void addVirtualPeer(const TurtleFileHash&, const TurtleVirtualPeerId&,RsTurtleGenericTunnelItem::Direction dir) ;
|
void addVirtualPeer(const TurtleFileHash&, const TurtleVirtualPeerId&,RsTurtleGenericTunnelItem::Direction dir) override;
|
||||||
void removeVirtualPeer(const TurtleFileHash&, const TurtleVirtualPeerId&) ;
|
void removeVirtualPeer(const TurtleFileHash&, const TurtleVirtualPeerId&) override;
|
||||||
|
|
||||||
// session handling handles
|
// session handling handles
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user