1999-04-17 08:37:12 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 23:32:16 +08:00
|
|
|
| PHP Version 4 |
|
1999-04-17 08:37:12 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 23:32:16 +08:00
|
|
|
| Copyright (c) 1997-2002 The PHP Group |
|
1999-04-17 08:37:12 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 09:40:02 +08:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.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. |
|
1999-04-17 08:37:12 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Paul Panotzki - Bunyip Information Systems |
|
2002-02-28 16:29:35 +08:00
|
|
|
| Jim Winstead <jimw@php.net> |
|
2001-05-06 02:36:22 +08:00
|
|
|
| Wez Furlong |
|
1999-04-17 08:37:12 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
2000-07-24 09:40:02 +08:00
|
|
|
|
1999-04-17 08:37:12 +08:00
|
|
|
/* $Id$ */
|
|
|
|
|
1999-12-18 12:01:20 +08:00
|
|
|
/* Synced with php 3.0 revision 1.24 1999-06-18 [ssb] */
|
1999-06-18 21:42:21 +08:00
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#ifndef FSOCK_H
|
|
|
|
#define FSOCK_H
|
1999-04-17 08:37:12 +08:00
|
|
|
|
2001-01-13 21:59:22 +08:00
|
|
|
#include "file.h"
|
|
|
|
|
2001-05-06 17:39:11 +08:00
|
|
|
#include "php_network.h"
|
|
|
|
|
1999-05-16 19:19:26 +08:00
|
|
|
PHP_FUNCTION(fsockopen);
|
|
|
|
PHP_FUNCTION(pfsockopen);
|
2000-02-02 04:02:44 +08:00
|
|
|
|
2001-02-21 04:52:53 +08:00
|
|
|
PHPAPI int php_lookup_hostname(const char *addr, struct in_addr *in);
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
|
1999-07-27 04:09:08 +08:00
|
|
|
PHP_RSHUTDOWN_FUNCTION(fsock);
|
1999-05-15 02:25:16 +08:00
|
|
|
|
2001-05-06 02:36:22 +08:00
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
2001-09-09 21:29:31 +08:00
|
|
|
* vim: sw=4 ts=4
|
2001-05-06 02:36:22 +08:00
|
|
|
*/
|
2000-07-03 07:46:51 +08:00
|
|
|
#endif /* FSOCK_H */
|