diff options
| author | Jason Greene <jason@php.net> | 2003-08-16 06:34:36 +0000 |
|---|---|---|
| committer | Jason Greene <jason@php.net> | 2003-08-16 06:34:36 +0000 |
| commit | 90289924c031c5b0b2aa1f99ecf317640c926a62 (patch) | |
| tree | d08435172a40ac3831ba4a80892be6aae2cdeabe /ext/sockets/php_sockets_win.h | |
| parent | 78a3fe8fca8aff9a034a4300edc01f0b0f4ed4a5 (diff) | |
| download | php-git-90289924c031c5b0b2aa1f99ecf317640c926a62.tar.gz | |
Remove all vector based functions for the following reasons:
- This solves alot of platform compatibility problems
- The possible security issue of allocating an incredibly large vector
pool is prevented
- They are of little to no benefit in a high level language
- 99% of all things done with these functions can be done using
sendto/recvfrom
Diffstat (limited to 'ext/sockets/php_sockets_win.h')
| -rw-r--r-- | ext/sockets/php_sockets_win.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ext/sockets/php_sockets_win.h b/ext/sockets/php_sockets_win.h index 5c6e7f277c..5adb8934de 100644 --- a/ext/sockets/php_sockets_win.h +++ b/ext/sockets/php_sockets_win.h @@ -43,41 +43,12 @@ #define set_errno(a) WSASetLastError(a) #define set_h_errno(a) WSASetLastError(a) #define close(a) closesocket(a) -#define CMSG_DATA(cmsg) ((cmsg)->cmsg_data) - -typedef int ssize_t; struct sockaddr_un { short sun_family; char sun_path[108]; }; -struct iovec { - char * iov_base; - int iov_len; -}; - -struct msghdr { - void* msg_name; - socklen_t msg_namelen; - struct iovec* msg_iov; - int msg_iovlen; - void* msg_control; - socklen_t msg_controllen; - int msg_flags; -}; - -struct cmsghdr { - socklen_t cmsg_len; - int cmsg_level; - int cmsg_type; - unsigned char cmsg_data[]; -}; - -ssize_t readv(SOCKET sock, const struct iovec *iov, int iovcnt); -ssize_t writev(SOCKET sock, const struct iovec *iov, int iovcnt); -ssize_t recvmsg(SOCKET sock, struct msghdr *msg, int flags); -ssize_t sendmsg(SOCKET sock, struct msghdr *msg, int flags); int socketpair(int domain, int type, int protocol, SOCKET sock[2]); int inet_aton(const char *cp, struct in_addr *inp); int fcntl(int fd, int cmd, ...); |
