mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
58 lines
1.7 KiB
C
58 lines
1.7 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 5 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1997-2014 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.php.net/license/3_01.txt |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Anatol Belski <ab@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef PHPDBG_IO_H
|
|
#define PHPDBG_IO_H
|
|
|
|
#include "phpdbg.h"
|
|
|
|
#ifdef PHP_WIN32
|
|
#undef UNICODE
|
|
#include "win32/inet.h"
|
|
#include <winsock2.h>
|
|
#include <windows.h>
|
|
#include <Ws2tcpip.h>
|
|
#include "win32/sockets.h"
|
|
|
|
#else
|
|
|
|
#if HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#if HAVE_ARPA_INET_H
|
|
#include <arpa/inet.h>
|
|
#endif
|
|
#include <netdb.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <poll.h>
|
|
#endif
|
|
|
|
|
|
PHPDBG_API int
|
|
phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo);
|
|
|
|
PHPDBG_API int
|
|
phpdbg_send_bytes(int sock, char *ptr, int len);
|
|
|
|
#endif /* PHPDBG_IO_H */
|
|
|