19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
*/ |
*/ |
21 |
|
|
|
|
|
22 |
/* irc-server.c: (dis)connection and communication with irc server */ |
/* irc-server.c: (dis)connection and communication with irc server */ |
23 |
|
|
24 |
|
|
25 |
|
#ifdef HAVE_CONFIG_H |
26 |
|
#include "config.h" |
27 |
|
#endif |
28 |
|
|
29 |
#include <stdlib.h> |
#include <stdlib.h> |
30 |
#include <unistd.h> |
#include <unistd.h> |
31 |
#include <stdio.h> |
#include <stdio.h> |
483 |
|
|
484 |
gui_printf (server->window, |
gui_printf (server->window, |
485 |
_("%s: connecting to %s:%d...\n"), |
_("%s: connecting to %s:%d...\n"), |
486 |
WEECHAT_NAME, server->address, server->port); |
PACKAGE_NAME, server->address, server->port); |
487 |
log_printf (_("connecting to server %s:%d...\n"), |
log_printf (_("connecting to server %s:%d...\n"), |
488 |
server->address, server->port); |
server->address, server->port); |
489 |
server->is_connected = 0; |
server->is_connected = 0; |
554 |
|
|
555 |
/* connection to server */ |
/* connection to server */ |
556 |
gui_printf (server->window, |
gui_printf (server->window, |
557 |
_("%s: server IP is: %s\n"), WEECHAT_NAME, ip_address); |
_("%s: server IP is: %s\n"), PACKAGE_NAME, ip_address); |
558 |
|
|
559 |
error = connect (server->sock4, (struct sockaddr *) &addr, sizeof (addr)); |
error = connect (server->sock4, (struct sockaddr *) &addr, sizeof (addr)); |
560 |
if (error != 0) |
if (error != 0) |