X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ffilenet.h;h=d6a73ddd78ee3fecfdb0037ef54f7f845fa1cbd0;hb=ffa81d5f0167a81cc81e9eec69062f0aeaf7754a;hp=261b1baeae45148320ae4fd175033fff32a38c7f;hpb=cab0b442977697b876127cda082b1262ece2714b;p=doldaconnect.git diff --git a/daemon/filenet.h b/daemon/filenet.h index 261b1ba..d6a73dd 100644 --- a/daemon/filenet.h +++ b/daemon/filenet.h @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,8 +44,9 @@ struct fnet { struct fnet *next; wchar_t *name; - void (*connect)(struct fnetnode *fn); + void (*connect)(struct fnetnode *fn, struct socket *sk); void (*destroy)(struct fnetnode *fn); + void (*kill)(struct fnetnode *fn); int (*setnick)(struct fnetnode *fn, wchar_t *newnick); int (*reqconn)(struct fnetpeer *peer); int (*sendchat)(struct fnetnode *fn, int public, wchar_t *to, wchar_t *string); @@ -99,12 +100,12 @@ struct fnetnode int state; int linked; int regstatus; + int connected; time_t srchwait, lastsrch; wchar_t *name, *pubid; wchar_t *mynick; wchar_t *owner; struct fnet *fnet; - struct socket *sk; struct fnetpeerdatum *peerdata; struct fnetpeer *peers; struct wcspair *args;