GRPC PHP  1.66.0
Public Member Functions
Grpc\Server Class Reference

class Server More...

Public Member Functions

 __construct ($args_array)
 Constructs a new instance of the Server class. More...
 
 requestCall ()
 Request a call on a server. More...
 
 addHttp2Port ($addr)
 Add a http2 over tcp listener. More...
 
 addSecureHttp2Port ($addr)
 Add a secure http2 over tcp listener. More...
 
 start ()
 Start a server - tells all listeners to start listening. More...
 

Detailed Description

class Server

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

Constructor & Destructor Documentation

◆ __construct()

Grpc\Server::__construct (   $args_array)

Constructs a new instance of the Server class.

Parameters
array$args_arrayThe arguments to pass to the server (optional)

Member Function Documentation

◆ addHttp2Port()

Grpc\Server::addHttp2Port (   $addr)

Add a http2 over tcp listener.

Parameters
string$addrThe address to add
Returns
int Port on success, 0 on failure

◆ addSecureHttp2Port()

Grpc\Server::addSecureHttp2Port (   $addr)

Add a secure http2 over tcp listener.

Parameters
string$addrThe address to add
ServerCredentialsThe ServerCredentials object
Returns
int Port on success, 0 on failure

◆ requestCall()

Grpc\Server::requestCall ( )

Request a call on a server.

Creates a single GRPC_SERVER_RPC_NEW event.

Returns
void

◆ start()

Grpc\Server::start ( )

Start a server - tells all listeners to start listening.

Returns
void

The documentation for this class was generated from the following file: