/*-GNU-GPL-BEGIN-* nepim - network pipemeter Copyright (C) 2005 Everton da Silva Marques nepim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. nepim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with nepim; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *-GNU-GPL-END-*/ /* $Id: greet.h,v 1.6 2005/09/20 23:04:22 evertonm Exp $ */ #ifndef NEPIM_GREET_H #define NEPIM_GREET_H typedef struct nepim_greet_t nepim_greet_t; struct nepim_greet_t { int must_send; long long bit_rate; int pkt_rate; int stat_interval; int test_duration; long write_delay; int udp_keepalive_send; int udp_keepalive_require; char *password_buf; int password_buf_size; }; int nepim_write_greetings(const nepim_greet_t *opt, char *buf, int buf_size); int nepim_parse_greetings(nepim_greet_t *opt, const char *buf, const char *past_end); #endif /* NEPIM_GREET_H */