mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 05:14:21 -04:00
Port pqissl to dual stack IPv6+IPv4
Changed unix_connect signature to be more comfortable for dual stack usage Remove dead code in pqissl::pqissl(...) Adapt p3I2pBob::connectI2P() to new unix_connect Adapt extaddrfinder to new unix_connect Add sockaddr_storage_ipv4_to_ipv6 to convert from flat IPv4 to IPv4 mapped as IPv6
This commit is contained in:
parent
2170313e42
commit
b3c7d195c8
9 changed files with 72 additions and 81 deletions
|
@ -890,7 +890,7 @@ bool p3I2pBob::connectI2P()
|
|||
}
|
||||
|
||||
// create socket
|
||||
mSocket = unix_socket(AF_INET, SOCK_STREAM, 0);
|
||||
mSocket = unix_socket(PF_INET, SOCK_STREAM, 0);
|
||||
if (mSocket < 0)
|
||||
{
|
||||
rslog(RsLog::Warning, &i2pBobLogInfo, "connectI2P_locked Failed to open socket! Socket Error: " + socket_errorType(errno));
|
||||
|
@ -898,7 +898,7 @@ bool p3I2pBob::connectI2P()
|
|||
}
|
||||
|
||||
// connect
|
||||
int err = unix_connect(mSocket, (struct sockaddr *)&mI2PProxyAddr, sizeof(mI2PProxyAddr));
|
||||
int err = unix_connect(mSocket, mI2PProxyAddr);
|
||||
if (err != 0) {
|
||||
rslog(RsLog::Warning, &i2pBobLogInfo, "connectI2P_locked Failed to connect to BOB! Socket Error: " + socket_errorType(errno));
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue