comment out unused parameters
[hiphop-php.git] / hphp / runtime / ext_zend_compat / php-src / main / streams / transports.cpp
blob0fb09e9e57169313c7231e6c47f1c74d482ef8a4
1 /*
2 +----------------------------------------------------------------------+
3 | PHP Version 5 |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2013 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Author: Wez Furlong <wez@thebrainroom.com> |
16 +----------------------------------------------------------------------+
19 #include "php.h"
20 #include "hphp/runtime/base/exceptions.h"
22 PHPAPI HashTable *php_stream_xport_get_hash(void)
24 HPHP::raise_fatal_error("unimplemented: php_stream_xport_get_hash");
27 PHPAPI int
28 php_stream_xport_register(char* /*protocol*/,
29 php_stream_transport_factory /*factory*/ TSRMLS_DC) {
30 HPHP::raise_fatal_error("unimplemented: php_stream_xport_register");
33 PHPAPI int php_stream_xport_unregister(char* /*protocol*/ TSRMLS_DC) {
34 HPHP::raise_fatal_error("unimplemented: php_stream_xport_unregister");
37 PHPAPI php_stream* _php_stream_xport_create(
38 const char* /*name*/, long /*namelen*/, int /*options*/, int /*flags*/,
39 const char* /*persistent_id*/, struct timeval* /*timeout*/,
40 php_stream_context* /*context*/, char** /*error_string*/,
41 int* /*error_code*/
42 STREAMS_DC TSRMLS_DC) {
43 HPHP::raise_fatal_error("unimplemented: _php_stream_xport_create");
46 /* Bind the stream to a local address */
47 PHPAPI int php_stream_xport_bind(php_stream* /*stream*/, const char* /*name*/,
48 long /*namelen*/,
49 char** /*error_text*/
50 TSRMLS_DC) {
51 HPHP::raise_fatal_error("unimplemented: php_stream_xport_bind");
54 /* Connect to a remote address */
55 PHPAPI int
56 php_stream_xport_connect(php_stream* /*stream*/, const char* /*name*/,
57 long /*namelen*/, int /*asynchronous*/,
58 struct timeval* /*timeout*/, char** /*error_text*/,
59 int* /*error_code*/
60 TSRMLS_DC) {
61 HPHP::raise_fatal_error("unimplemented: php_stream_xport_connect");
64 /* Prepare to listen */
65 PHPAPI int php_stream_xport_listen(php_stream* /*stream*/, int /*backlog*/,
66 char** /*error_text*/ TSRMLS_DC) {
67 HPHP::raise_fatal_error("unimplemented: php_stream_xport_listen");
70 /* Get the next client and their address (as a string) */
71 PHPAPI int
72 php_stream_xport_accept(php_stream* /*stream*/, php_stream** /*client*/,
73 char** /*textaddr*/, int* /*textaddrlen*/,
74 void** /*addr*/, socklen_t* /*addrlen*/,
75 struct timeval* /*timeout*/,
76 char** /*error_text*/
77 TSRMLS_DC) {
78 HPHP::raise_fatal_error("unimplemented: php_stream_xport_accept");
81 PHPAPI int php_stream_xport_get_name(php_stream* /*stream*/, int /*want_peer*/,
82 char** /*textaddr*/, int* /*textaddrlen*/,
83 void** /*addr*/,
84 socklen_t* /*addrlen*/
85 TSRMLS_DC) {
86 HPHP::raise_fatal_error("unimplemented: php_stream_xport_get_name");
89 PHPAPI int
90 php_stream_xport_crypto_setup(php_stream* /*stream*/,
91 php_stream_xport_crypt_method_t /*crypto_method*/,
92 php_stream* /*session_stream*/ TSRMLS_DC) {
93 HPHP::raise_fatal_error("unimplemented: php_stream_xport_crypto_setup");
96 PHPAPI int php_stream_xport_crypto_enable(php_stream* /*stream*/,
97 int /*activate*/ TSRMLS_DC) {
98 HPHP::raise_fatal_error("unimplemented: php_stream_xport_crypto_enable");
101 /* Similar to recv() system call; read data from the stream, optionally
102 * peeking, optionally retrieving OOB data */
103 PHPAPI int
104 php_stream_xport_recvfrom(php_stream* /*stream*/, char* /*buf*/,
105 size_t /*buflen*/, long /*flags*/, void** /*addr*/,
106 socklen_t* /*addrlen*/, char** /*textaddr*/,
107 int* /*textaddrlen*/
108 TSRMLS_DC) {
109 HPHP::raise_fatal_error("unimplemented: php_stream_xport_recvfrom");
112 /* Similar to send() system call; send data to the stream, optionally
113 * sending it as OOB data */
114 PHPAPI int
115 php_stream_xport_sendto(php_stream* /*stream*/, const char* /*buf*/,
116 size_t /*buflen*/, long /*flags*/, void* /*addr*/,
117 socklen_t /*addrlen*/ TSRMLS_DC) {
118 HPHP::raise_fatal_error("unimplemented: php_stream_xport_sendto");
121 /* Similar to shutdown() system call; shut down part of a full-duplex
122 * connection */
123 PHPAPI int php_stream_xport_shutdown(php_stream* /*stream*/,
124 stream_shutdown_t /*how*/ TSRMLS_DC) {
125 HPHP::raise_fatal_error("unimplemented: php_stream_xport_shutdown");