File: README

package info (click to toggle)
xorp 1.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,560 kB
  • ctags: 54,995
  • sloc: cpp: 397,204; sh: 17,490; ansic: 17,029; python: 7,643; lex: 1,632; yacc: 1,474; awk: 956; makefile: 251; perl: 217; sed: 33
file content (23 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# $XORP: xorp/libcomm/README,v 1.3 2004/01/16 19:57:25 hodson Exp $
#

This directory contains the COMM socket library.

This library includes a number of handy functions that simplify the
usage of communication sockets: open, close, bind to a local address and
a port, join a multicast group, etc.  The library supports both IPv4 and
IPv6.

The complete API to the library is in the "comm_api.h" file.
Each function declared in that file is reasonably well documented.

The API has two parts: the high-level ``user'' API, and the lower-lever
``sock'' API.
The lower-level API performs the particular operations on a socket
(e.g., join a multicast group on a socket).
The higher-level API usually combines several lower-level operations
together: e.g., open a socket, bind it to a multicast address and a port,
and join that multicast address.

See file test_comm.c for various examples of how to use the library.