paulo@0: /* paulo@0: * $Id: gt_bind.h,v 1.2 2004/03/24 06:19:46 hipnod Exp $ paulo@0: * paulo@0: * Copyright (C) 2001-2004 giFT project (gift.sourceforge.net) paulo@0: * paulo@0: * This program is free software; you can redistribute it and/or modify it paulo@0: * under the terms of the GNU General Public License as published by the paulo@0: * Free Software Foundation; either version 2, or (at your option) any paulo@0: * later version. paulo@0: * paulo@0: * This program is distributed in the hope that it will be useful, but paulo@0: * WITHOUT ANY WARRANTY; without even the implied warranty of paulo@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU paulo@0: * General Public License for more details. paulo@0: */ paulo@0: paulo@0: #ifndef GIFT_GT_BIND_H_ paulo@0: #define GIFT_GT_BIND_H_ paulo@0: paulo@0: /*****************************************************************************/ paulo@0: paulo@0: struct gt_node; paulo@0: paulo@0: /* should be renamed to gt_bind_uptime() */ paulo@0: time_t gt_uptime (void); paulo@0: paulo@0: /*****************************************************************************/ paulo@0: paulo@0: /* received an incoming connection on this binding */ paulo@0: void gt_bind_clear_firewalled (void); paulo@0: paulo@0: /* a connection on this binding completed: used for sending ConnectBack paulo@0: * messages to the other side */ paulo@0: void gt_bind_completed_connection (struct gt_node *remote); paulo@0: paulo@0: /* whether this node is firewalled */ paulo@0: BOOL gt_bind_is_firewalled (void); paulo@0: paulo@0: /*****************************************************************************/ paulo@0: paulo@0: void gt_bind_init (void); paulo@0: void gt_bind_cleanup (void); paulo@0: paulo@0: /*****************************************************************************/ paulo@0: paulo@0: #endif /* GIFT_GT_BIND_H_ */