bc2a1eab150ab3b91aa3ba9bc27ef407d109f229
4 * @brief Interface of sender_t.
9 * Copyright (C) 2005-2006 Martin Willi
10 * Copyright (C) 2005 Jan Hutter
11 * Hochschule fuer Technik Rapperswil
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
27 typedef struct sender_t sender_t
;
32 * @brief Thread responsible for sending packets over the socket.
42 * @brief Destroys a sender object.
44 * @param sender calling object
46 void (*destroy
) (sender_t
*sender
);
51 * @brief Create the sender thread.
53 * The thread will start to work, getting packets
54 * from the send queue and sends them out.
58 * - NULL of thread could not be started
62 sender_t
* sender_create(void);