mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
net_connect*() contains now error parameter, so it can be used to properly
check the errno if connect() fails. Added support for connecting to named UNIX sockets. Some cleanups with session handling / server connecting as well. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2819 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7437bbea5f
commit
6f7485b8fa
13 changed files with 180 additions and 92 deletions
|
|
@ -238,9 +238,12 @@ static void sig_server_connecting(SERVER_REC *server, IPADDR *ip)
|
|||
char ipaddr[MAX_IP_LEN];
|
||||
|
||||
g_return_if_fail(server != NULL);
|
||||
g_return_if_fail(ip != NULL);
|
||||
|
||||
net_ip2host(ip, ipaddr);
|
||||
if (ip == NULL)
|
||||
ipaddr[0] = '\0';
|
||||
else
|
||||
net_ip2host(ip, ipaddr);
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE, TXT_CONNECTING,
|
||||
server->connrec->address, ipaddr, server->connrec->port);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue