Rename connection_addr -> peer_addr (thanks again eclipse)

This commit is contained in:
simon.kagstrom 2010-02-14 08:28:40 +00:00
parent a0fb08b79f
commit f2a9185cc0
4 changed files with 5 additions and 5 deletions

View File

@ -616,7 +616,7 @@ bool Network::SendUpdate()
ssize_t v; ssize_t v;
v = this->SendTo((void*)p, this->sock, v = this->SendTo((void*)p, this->sock,
size_to_send, &this->connection_addr); size_to_send, &this->peer_addr);
if (v < 0 || (size_t)v != size_to_send) if (v < 0 || (size_t)v != size_to_send)
return false; return false;
cur_sz += size_to_send; cur_sz += size_to_send;
@ -1137,7 +1137,7 @@ bool Network::SelectPeer(const char *hostname, uint16_t port, uint32_t server_id
} }
this->SelectPeer(server_id); this->SelectPeer(server_id);
this->InitSockaddr(&this->connection_addr, hostname, port); this->InitSockaddr(&this->peer_addr, hostname, port);
this->peer_selected = 1; this->peer_selected = 1;
return true; return true;

View File

@ -388,7 +388,7 @@ protected:
/* Connection to the peer */ /* Connection to the peer */
int peer_selected; int peer_selected;
int sock; int sock;
struct sockaddr_in connection_addr; struct sockaddr_in peer_addr;
const char *connection_error_message; const char *connection_error_message;

View File

@ -48,7 +48,7 @@ bool Network::InitSocket(const char *remote_host, int port)
set_sock_opts(this->sock); set_sock_opts(this->sock);
/* Connect to the server. */ /* Connect to the server. */
this->InitSockaddr(&this->connection_addr, remote_host, port); this->InitSockaddr(&this->peer_addr, remote_host, port);
return true; return true;
} }

View File

@ -46,7 +46,7 @@ bool Network::InitSocket(const char *remote_host, int port)
set_sock_opts(this->sock); set_sock_opts(this->sock);
/* Setup the socket address */ /* Setup the socket address */
this->InitSockaddr(&this->connection_addr, remote_host, port); this->InitSockaddr(&this->peer_addr, remote_host, port);
return true; return true;
} }