mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
Partially completed changes to implement final relay bits.
* Adding more detailed flags to each connection. * Cleaned up unneeded stuff from p3LinkMgr. * Added rswin.h includes before openssl - allows compilation using std Win OpenSSL. * Added getConnectFlags() to Net Base. * removed net_attempt and associated obsolete variables from pqissl * Made NetBinInterface protected in pqiperson (is this okay?) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4767 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e432d89310
commit
abbebf48ff
10 changed files with 57 additions and 50 deletions
|
@ -28,6 +28,8 @@
|
|||
#ifndef MRK_PQI_SSL_HEADER
|
||||
#define MRK_PQI_SSL_HEADER
|
||||
|
||||
#include "util/rswin.h"
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
// operating system specific network header.
|
||||
|
@ -98,6 +100,7 @@ virtual int stoplistening();
|
|||
virtual int reset();
|
||||
virtual int disconnect();
|
||||
virtual int getConnectAddress(struct sockaddr_in &raddr);
|
||||
virtual int getConnectFlags(uint32_t &flags);
|
||||
|
||||
virtual bool connect_parameter(uint32_t type, uint32_t value);
|
||||
|
||||
|
@ -114,7 +117,7 @@ virtual bool cansend();
|
|||
|
||||
virtual int close(); /* BinInterface version of reset() */
|
||||
virtual std::string gethash(); /* not used here */
|
||||
virtual bool bandwidthLimited() { return true ; } // replace by !sameLAN to avoid bandwidth limiting on lAN
|
||||
virtual bool bandwidthLimited() { return true ; } // replace by !sameLAN to avoid bandwidth limiting on LAN
|
||||
|
||||
protected:
|
||||
// A little bit of information to describe
|
||||
|
@ -179,12 +182,7 @@ virtual int net_internal_fcntl_nonblock(int fd) { return unix_fcntl_nonblock(fd)
|
|||
|
||||
int attempt_ts;
|
||||
|
||||
// Some flags to indicate
|
||||
// the status of the various interfaces
|
||||
// (local), (server)
|
||||
unsigned int net_attempt;
|
||||
unsigned int net_failure;
|
||||
unsigned int net_unreachable;
|
||||
uint32_t mNetConnectFlags; // What info we have about the connection.
|
||||
|
||||
bool sameLAN; /* flag use to allow high-speed transfers */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue