00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #if defined(VMDSOCKINTERNAL)
00027
00028 #if !defined(_MSC_VER)
00029 #include <unistd.h>
00030 #include <sys/types.h>
00031 #include <sys/socket.h>
00032 #include <sys/time.h>
00033 #include <netinet/in.h>
00034 #include <sys/file.h>
00035 #endif
00036
00037 typedef struct {
00038 struct sockaddr_in addr;
00039 int addrlen;
00040 int sd;
00041 } vmdsocket;
00042
00043 #endif
00044
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048
00049 int vmdsock_init(void);
00050 void *vmdsock_create(void);
00051 int vmdsock_bind(void *, int);
00052 int vmdsock_listen(void *);
00053 void *vmdsock_accept(void *);
00054 int vmdsock_connect(void *, const char *, int);
00055 int vmdsock_write(void *, const void *, int);
00056 int vmdsock_read(void *, void *, int);
00057 int vmdsock_selread(void *, int);
00058 int vmdsock_selwrite(void *, int);
00059 void vmdsock_shutdown(void *);
00060 void vmdsock_destroy(void *);
00061
00062 #ifdef __cplusplus
00063 }
00064 #endif
00065