mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 18:42:20 -04:00
Massive commit - changing from sockaddr_in => sockaddr_storage.
In preparation for making RS support IPv6. NB: This breaks the build of retroshare-gui, as the sockaddr_storage_xxx fns are only defined as prototypes for now. All the aux libraries like udp / stun / tcponudp / dht have still to be converted. These changes will probably break various things and need to be tested thoroughly. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@6735 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fd071161bf
commit
6290d8fed9
66 changed files with 1182 additions and 1046 deletions
|
@ -55,7 +55,7 @@ class pqipersongrp: public pqihandler, public pqiMonitor, public p3ServiceServer
|
|||
/*************************** Setup *************************/
|
||||
/* pqilistener */
|
||||
|
||||
virtual bool resetListener(struct sockaddr_in &local); // overloaded from pqiNetListener
|
||||
virtual bool resetListener(const struct sockaddr_storage &local); // overloaded from pqiNetListener
|
||||
int init_listener();
|
||||
|
||||
/*************** pqiMonitor callback ***********************/
|
||||
|
@ -84,7 +84,7 @@ int connectPeer(std::string id
|
|||
int tagHeartbeatRecvd(std::string id);
|
||||
|
||||
/*** callback from children ****/
|
||||
bool notifyConnect(std::string id, uint32_t type, bool success, struct sockaddr_in remote_peer_address);
|
||||
bool notifyConnect(std::string id, uint32_t type, bool success, const struct sockaddr_storage &remote_peer_address);
|
||||
//bool notifyConnect(std::string id, uint32_t type, bool success);
|
||||
|
||||
// tick interfaces.
|
||||
|
@ -98,7 +98,7 @@ virtual bool locked_getCryptoParams(const std::string&, RsPeerCryptoParams&) { r
|
|||
|
||||
/********* FUNCTIONS to OVERLOAD for specialisation ********/
|
||||
// THESE NEED TO BE LOCKED UNTIL PQILISTENER IS THREAD-SAFE.
|
||||
virtual pqilistener *locked_createListener(struct sockaddr_in laddr) = 0;
|
||||
virtual pqilistener *locked_createListener(const struct sockaddr_storage &laddr) = 0;
|
||||
virtual pqiperson *locked_createPerson(std::string id, pqilistener *listener) = 0;
|
||||
/********* FUNCTIONS to OVERLOAD for specialisation ********/
|
||||
|
||||
|
@ -131,7 +131,7 @@ class pqipersongrpDummy: public pqipersongrp
|
|||
protected:
|
||||
|
||||
/********* FUNCTIONS to OVERLOAD for specialisation ********/
|
||||
virtual pqilistener *locked_createListener(struct sockaddr_in laddr);
|
||||
virtual pqilistener *locked_createListener(const struct sockaddr_storage &laddr);
|
||||
virtual pqiperson *locked_createPerson(std::string id, pqilistener *listener);
|
||||
/********* FUNCTIONS to OVERLOAD for specialisation ********/
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue