Jelajahi Sumber

add sockaddr_in and fdset

David Rose 17 tahun lalu
induk
melakukan
25ca934a9e
2 mengubah file dengan 9 tambahan dan 1 penghapusan
  1. 1 1
      dtool/src/parser-inc/Sources.pp
  2. 8 0
      dtool/src/parser-inc/socket.h

+ 1 - 1
dtool/src/parser-inc/Sources.pp

@@ -14,5 +14,5 @@
     intfloat_readwrite.h mathematics.h rational.h rtp.h \
     intfloat_readwrite.h mathematics.h rational.h rtp.h \
     rtsp.h rtspcodes.h setjmp.h winsock2.h \
     rtsp.h rtspcodes.h setjmp.h winsock2.h \
     ode/ode.h collision_trimesh.h  \
     ode/ode.h collision_trimesh.h  \
-    netinet/tcp.h netinet/ip.h \
+    netinet/tcp.h netinet/ip.h sys/socket.h \
     rfftw.h libtar.h malloc.h ucontext.h ctype.h
     rfftw.h libtar.h malloc.h ucontext.h ctype.h

+ 8 - 0
dtool/src/parser-inc/socket.h

@@ -0,0 +1,8 @@
+struct sockaddr_in
+{
+};
+
+typedef struct fd_set {
+        unsigned int fd_count;               /* how many are SET? */
+        SOCKET  fd_array[10];   /* an array of SOCKETs */
+} fd_set;