diff options
author | fcolin | 2007-02-01 13:02:30 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:02:30 +0000 |
commit | 8a81bd5fd18cd5021df69fc3a5913b3e9443a37e (patch) | |
tree | b2aba23c88690ebac9b1b68c72b6a37b9ad375aa /Ivy/IvyStdAfx.h | |
parent | a8fd499421c677da8c2704a6c885da9ad744257e (diff) | |
download | ivy-cplusplus-8a81bd5fd18cd5021df69fc3a5913b3e9443a37e.zip ivy-cplusplus-8a81bd5fd18cd5021df69fc3a5913b3e9443a37e.tar.gz ivy-cplusplus-8a81bd5fd18cd5021df69fc3a5913b3e9443a37e.tar.bz2 ivy-cplusplus-8a81bd5fd18cd5021df69fc3a5913b3e9443a37e.tar.xz |
Utilisateur : Fcolin Date : 29/06/00 Heure : 15:59 Archivé dans $/Ivy Commentaire: Version multicast (vss 2)
Diffstat (limited to 'Ivy/IvyStdAfx.h')
-rw-r--r-- | Ivy/IvyStdAfx.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Ivy/IvyStdAfx.h b/Ivy/IvyStdAfx.h index 60ed24d..88ef83d 100644 --- a/Ivy/IvyStdAfx.h +++ b/Ivy/IvyStdAfx.h @@ -20,8 +20,28 @@ #include <stdio.h>
#include <stdarg.h>
#include <assert.h>
-#include <winsock2.h>
+#include <winsock2.h>
+// Some definition missing from winsock2
+/*
+ * Options for use with [gs]etsockopt at the IP level.
+ */
+#define IP_OPTIONS 1 /* set/get IP per-packet options */
+#define IP_MULTICAST_IF 2 /* set/get IP multicast interface */
+#define IP_MULTICAST_TTL 3 /* set/get IP multicast timetolive */
+#define IP_MULTICAST_LOOP 4 /* set/get IP multicast loopback */
+#define IP_ADD_MEMBERSHIP 5 /* add an IP group membership */
+#define IP_DROP_MEMBERSHIP 6 /* drop an IP group membership */
+#define IP_TTL 7 /* set/get IP Time To Live */
+#define IP_TOS 8 /* set/get IP Type Of Service */
+#define IP_DONTFRAGMENT 9 /* set/get IP Don't Fragment flag */
+/*
+ * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
+ */
+struct ip_mreq {
+ struct in_addr imr_multiaddr; /* IP multicast address of group */
+ struct in_addr imr_interface; /* local IP address of interface */
+};
#include <string>
#include <vector>
#include <list>
|