#include "server.h"
#include <ext/spl/spl_exceptions.h>
#include <zend_exceptions.h>
#include <grpc/grpc_security.h>
#include <grpc/slice.h>
#include <grpc/support/alloc.h>
#include "call.h"
#include "completion_queue.h"
#include "channel.h"
#include "server_credentials.h"
#include "timeval.h"
Go to the source code of this file.
◆ create_wrapped_grpc_server()
◆ grpc_init_server()
void grpc_init_server |
( |
TSRMLS_D |
| ) |
|
◆ if()
◆ PHP_METHOD() [1/5]
PHP_METHOD |
( |
Server |
, |
|
|
__construct |
|
|
) |
| |
Constructs a new instance of the Server class
- Parameters
-
array | $args_array | The arguments to pass to the server (optional) |
Definition at line 67 of file server.c.
◆ PHP_METHOD() [2/5]
PHP_METHOD |
( |
Server |
, |
|
|
addHttp2Port |
|
|
) |
| |
Add a http2 over tcp listener.
- Parameters
-
string | $addr | The address to add |
- Returns
- int Port on success, 0 on failure
Definition at line 154 of file server.c.
◆ PHP_METHOD() [3/5]
PHP_METHOD |
( |
Server |
, |
|
|
addSecureHttp2Port |
|
|
) |
| |
Add a secure http2 over tcp listener.
- Parameters
-
string | $addr | The address to add |
| ServerCredentials | The ServerCredentials object |
- Returns
- int Port on success, 0 on failure
Definition at line 179 of file server.c.
◆ PHP_METHOD() [4/5]
PHP_METHOD |
( |
Server |
, |
|
|
requestCall |
|
|
) |
| |
Request a call on a server. Creates a single GRPC_SERVER_RPC_NEW event.
- Returns
- void
Definition at line 98 of file server.c.
◆ PHP_METHOD() [5/5]
Start a server - tells all listeners to start listening
- Returns
- void
Definition at line 205 of file server.c.
◆ grpc_ce_server
zend_class_entry* grpc_ce_server |
◆ server_methods
zend_function_entry server_methods[] |
|
static |
Initial value:= {
PHP_ME(
Server, __construct, arginfo_construct,
ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(
Server, requestCall, arginfo_requestCall,
ZEND_ACC_PUBLIC)
PHP_ME(
Server, addHttp2Port, arginfo_addHttp2Port,
ZEND_ACC_PUBLIC)
PHP_ME(
Server, addSecureHttp2Port, arginfo_addSecureHttp2Port,
ZEND_ACC_PUBLIC)
ZEND_ACC_PUBLIC)
PHP_FE_END
}
Definition at line 230 of file server.c.