Rev 9810 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9810 | Rev 9811 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | unsigned int optlenght; |
74 | unsigned int optlenght; |
75 | unsigned char options; |
75 | unsigned char options; |
76 | } optstruct; |
76 | } optstruct; |
77 | #pragma pack(pop) |
77 | #pragma pack(pop) |
Line 78... | Line 78... | ||
78 | 78 | ||
79 | DLLAPI int socket(int domain, int type, int protocol); |
79 | extern int _FUNC(socket)(int domain, int type, int protocol); |
80 | DLLAPI int close(int socket); |
80 | extern int _FUNC(close)(int socket); |
81 | DLLAPI int bind(int socket, const struct sockaddr* addres, int addres_len); |
81 | extern int _FUNC(bind)(int socket, const struct sockaddr* addres, int addres_len); |
82 | DLLAPI int listen(int socket, int backlog); |
82 | extern int _FUNC(listen)(int socket, int backlog); |
83 | DLLAPI int connect(int socket, const struct sockaddr* address, int socket_len); |
83 | extern int _FUNC(connect)(int socket, const struct sockaddr* address, int socket_len); |
84 | DLLAPI int accept(int socket, const struct sockaddr* address, int address_len); |
84 | extern int _FUNC(accept)(int socket, const struct sockaddr* address, int address_len); |
85 | DLLAPI int send(int socket, const void* message, size_t msg_len, int flag); |
85 | extern int _FUNC(send)(int socket, const void* message, size_t msg_len, int flag); |
86 | DLLAPI int recv(int socket, void* buffer, size_t buff_len, int flag); |
86 | extern int _FUNC(recv)(int socket, void* buffer, size_t buff_len, int flag); |
87 | DLLAPI int setsockopt(int socket, const optstruct* opt); |
87 | extern int _FUNC(setsockopt)(int socket, const optstruct* opt); |
88 | DLLAPI int getsockopt(int socket, optstruct* opt); |
88 | extern int _FUNC(getsockopt)(int socket, optstruct* opt); |
Line 89... | Line 89... | ||
89 | DLLAPI int socketpair(int* socket1, int* socket2); |
89 | extern int _FUNC(socketpair)(int* socket1, int* socket2); |
90 | 90 |