]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - src/charon/plugins/ha/ha_socket.h
2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup ha_socket ha_socket
24 #include "ha_message.h"
26 #include <sa/ike_sa.h>
28 typedef struct ha_socket_t ha_socket_t
;
31 * Socket to send/received SA synchronization data
36 * Push synchronization information to the responsible node.
38 * @param message message to send, gets destroyed by push()
40 void (*push
)(ha_socket_t
*this, ha_message_t
*message
);
43 * Pull synchronization information from a peer we are responsible.
45 * @return received message
47 ha_message_t
*(*pull
)(ha_socket_t
*this);
50 * Destroy a ha_socket_t.
52 void (*destroy
)(ha_socket_t
*this);
56 * Create a ha_socket instance.
58 ha_socket_t
*ha_socket_create(char *local
, char *remote
);
60 #endif /* HA_SOCKET_ @}*/