Загрузить файлы в «/»
This commit is contained in:
parent
fd99c955a5
commit
f0dbe48442
2 changed files with 3 additions and 8 deletions
7
main.c
7
main.c
|
@ -63,16 +63,11 @@ int main(void) {
|
|||
die("Cant chdir");
|
||||
|
||||
//512 - size of raw buffer (max irc)
|
||||
IRCC_init(&client, IRCC_MSG_MAX);
|
||||
IRCC_init(&client);
|
||||
int status = IRCC_connect(&client, HOST, PORT);
|
||||
if (status == IRCC_ERROR)
|
||||
die("Conn refused");
|
||||
|
||||
//Socket timeout
|
||||
struct timeval tv = {IRCC_PING_TIMEOUT, IRCC_PING_TIMEOUT};
|
||||
if (setsockopt(client.socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
|
||||
die("setsockopt");
|
||||
|
||||
//Register
|
||||
IRCC_register(&client, NICK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue