Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
0741e687
Commit
0741e687
authored
Jan 08, 2010
by
Ondřej Zajíček
Browse files
Socket table update.
parent
538dd2e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/socket.h
View file @
0741e687
...
...
@@ -83,18 +83,23 @@ sk_send_buffer_empty(sock *sk)
#define SK_TCP_PASSIVE 0
/* ? * - - - ? - */
#define SK_TCP_ACTIVE 1
/* ? ? * * - ? - */
#define SK_TCP 2
#define SK_UDP 3
/* ? ?
-
-
-
? ? */
#define SK_IP 5
/* ? -
-
*
-
? ? */
#define SK_UDP 3
/* ? ?
?
?
?
? ? */
#define SK_IP 5
/* ? -
?
*
?
? ? */
#define SK_MAGIC 7
/* Internal use by sysdep code */
#define SK_UNIX_PASSIVE 8
#define SK_UNIX 9
/*
* Multicast sockets are slightly different from the other ones:
* If you want to send packets only, just set the destination
* address to the corresponding multicast group and iface to
* the interface to be used. If you also want receiving, set
* source address to the same multicast group as well.
* For SK_UDP or SK_IP sockets setting DA/DP allows to use sk_send(),
* otherwise sk_send_to() must be used.
*
* For SK_IP sockets setting DP specifies protocol number, which is used
* for both receiving and sending.
*
* For multicast on SK_UDP or SK_IP sockets set IF and TTL,
* call sk_setup_multicast() to enable multicast on that socket,
* and then use sk_join_group() and sk_leave_group() to manage
* a set of received multicast groups.
*/
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment