]>
git.ipfire.org Git - people/ms/strongswan.git/blob - src/charon/charon/threads/sender.h
2a41ccc66dc0857c70540f189a1fe3a53ad08192
4 * @brief Interface of sender_t.
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
28 typedef struct sender_t sender_t
;
31 * @brief Thread responsible for sending packets over the socket.
41 * @brief Destroys a sender object.
43 * @param sender calling object
45 void (*destroy
) (sender_t
*sender
);
50 * @brief Create the sender thread.
52 * The thread will start to work, getting packets
53 * from the send queue and sends them out.
57 * - NULL of thread could not be started
61 sender_t
* sender_create(void);