updated API doc for socket.h

This commit is contained in:
Martin Willi
2008-11-13 07:48:27 +00:00
parent 8120943583
commit bbbe605fe3
+7 -10
View File
@@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2006 Tobias Brunner, Daniel Roethlisberger * Copyright (C) 2006 Tobias Brunner, Daniel Roethlisberger
* Copyright (C) 2005-2006 Martin Willi * Copyright (C) 2005-2008 Martin Willi
* Copyright (C) 2005 Jan Hutter * Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil * Hochschule fuer Technik Rapperswil
* *
@@ -35,10 +35,8 @@ typedef struct socket_t socket_t;
/** /**
* Maximum size of a packet. * Maximum size of a packet.
* *
* 3000 Bytes should be sufficient, see IKEv2 RFC. However, we currently * 3000 Bytes should be sufficient, see IKEv2 RFC. However, to run our
* do not support HASH_AND_URL certificates, so we require to transmit * multi-CA test with 2 intermediate CAs, we increase that to 5000 bytes.
* the full certificates. To run our multi-CA test with 2 intermediate CAs,
* 5000 bytes is sufficient.
*/ */
#define MAX_PACKET 5000 #define MAX_PACKET 5000
@@ -73,9 +71,8 @@ struct socket_t {
/** /**
* Send a packet. * Send a packet.
* *
* Sends a packet to the net using destination from the packet. * Sends a packet to the net using source and destination addresses of
* Packet is sent using default routing mechanisms, thus the * the packet.
* source address in packet is ignored.
* *
* @param packet packet_t to send * @param packet packet_t to send
* @return * @return
@@ -85,9 +82,9 @@ struct socket_t {
status_t (*send) (socket_t *this, packet_t *packet); status_t (*send) (socket_t *this, packet_t *packet);
/** /**
* Enumerate the underlying sockets. * Enumerate all underlying socket file descriptors.
* *
* @return enumerator_t object * @return enumerator over (int fd, int family, int port)
*/ */
enumerator_t *(*create_enumerator) (socket_t *this); enumerator_t *(*create_enumerator) (socket_t *this);