vmdsock.h

Go to the documentation of this file.
00001 
00007 #if defined(VMDSOCKINTERNAL)
00008 
00009 #ifndef WIN32
00010 #include <unistd.h>
00011 #include <sys/types.h>
00012 #include <sys/socket.h>
00013 #include <sys/time.h>
00014 #include <netinet/in.h>
00015 #include <sys/file.h>
00016 #endif
00017 
00018 typedef struct {
00019   struct sockaddr_in addr; /* address of socket provided by bind() */
00020   int addrlen;             /* size of the addr struct */
00021   int sd;                  /* socket file descriptor */
00022 } vmdsocket;
00023 
00024 #endif /* VMDSOCKINTERNAL */
00025 
00026 int   vmdsock_init(void);
00027 void *vmdsock_create(void);
00028 int   vmdsock_bind(void *, int);
00029 int   vmdsock_listen(void *);
00030 void *vmdsock_accept(void *);  /* return new socket */
00031 int   vmdsock_connect(void *, const char *, int);
00032 int   vmdsock_write(void *, const void *, int);
00033 int   vmdsock_read(void *, void *, int);
00034 int   vmdsock_selread(void *, int);
00035 int   vmdsock_selwrite(void *, int);
00036 void  vmdsock_destroy(void *);
00037 

Generated on Sat Sep 23 01:17:16 2017 for NAMD by  doxygen 1.4.7