Functions | Variables
server.c File Reference
#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"
Include dependency graph for server.c:

Go to the source code of this file.

Functions

php_grpc_zend_object create_wrapped_grpc_server (zend_class_entry *class_type TSRMLS_DC)
 
void grpc_init_server (TSRMLS_D)
 
 if (p->wrapped !=NULL)
 
 PHP_METHOD (Server, __construct)
 
 PHP_METHOD (Server, addHttp2Port)
 
 PHP_METHOD (Server, addSecureHttp2Port)
 
 PHP_METHOD (Server, requestCall)
 
 PHP_METHOD (Server, start)
 

Variables

zend_class_entry * grpc_ce_server
 
static zend_function_entry server_methods []
 

Function Documentation

◆ create_wrapped_grpc_server()

php_grpc_zend_object create_wrapped_grpc_server ( zend_class_entry *class_type  TSRMLS_DC)

Definition at line 55 of file server.c.

◆ grpc_init_server()

void grpc_init_server ( TSRMLS_D  )

Definition at line 244 of file server.c.

◆ if()

if ( p->wrapped = NULL)

Definition at line 44 of file server.c.

◆ PHP_METHOD() [1/5]

PHP_METHOD ( Server  ,
__construct   
)

Constructs a new instance of the Server class

Parameters
array$args_arrayThe 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$addrThe 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$addrThe address to add
ServerCredentialsThe 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]

PHP_METHOD ( Server  ,
start   
)

Start a server - tells all listeners to start listening

Returns
void

Definition at line 205 of file server.c.

Variable Documentation

◆ grpc_ce_server

zend_class_entry* grpc_ce_server

class Server

See also
https://github.com/grpc/grpc/tree/master/src/php/ext/grpc/server.c

Definition at line 39 of file server.c.

◆ 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)
PHP_ME(Server, start, arginfo_start,
ZEND_ACC_PUBLIC)
PHP_FE_END
}

Definition at line 230 of file server.c.

framework.rpc.grpc_channelz.Server
Server
Definition: grpc_channelz.py:42
start
static uint64_t start
Definition: benchmark-pound.c:74


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:30