*
* DESCRIPTION
*
- * SILC Buffer Format API provides a few functions for formatting
- * various different data types into a buffer, and retrieving
- * various data from buffer into specific data types. It is usefull
- * to format for example packets and later unformat them.
+ * SILC Buffer Format API provides functions for formatting different data
+ * types into a buffer and retrieving different data types from a buffer
+ * into specified data types. It is especially useful to format packets,
+ * protocol payloads and such.
*
***/
* asynchronous call, and this function returns before the connection is
* actually established. The `callback' will be called after the
* connection is created to deliver the SilcStream for the created
- * connection.
+ * connection. This function supports IPv6 if the platform supports it.
*
* The returned SilcAsyncOperation context can be used to control the
* asynchronous connecting, such as to abort it. If it is aborted
* To read the packet use silc_stream_read if the remote address was
* provided, and silc_net_udp_receive if it was not.
*
+ * Supports IPv6 if the platform supports it.
+ *
* EXAMPLE
*
* SilcStream udpstream;
* // Send packet to remote host
* silc_stream_write(udpstream, data, data_len);
*
+ * Create UDP listener:
+ *
+ * udpstream = silc_net_udp_connect("0.0.0.0", 500, NULL, 0, schedule);
+ * silc_stream_set_notifier(udpstream, schedule, receive_callback, context);
+ *
***/
SilcStream silc_net_udp_connect(const char *local_ip_addr, int local_port,
const char *remote_ip_addr, int remote_port,
* the creation process. The `callback' will be called to return the
* created socket stream. To destroy the stream call silc_stream_destroy.
*
- * If the `lookup' is TRUE then this will performed IP and hostname lookup
+ * If the `lookup' is TRUE then this will perform IP and hostname lookup
* for the socket. If the `require_fqdn' is TRUE then the socket must
* have valid hostname and IP address, otherwise the stream creation will
* fail. If it is FALSE then only valid IP address is required. Note that,