Functions | Variables
call.c File Reference
#include "call.h"
#include <ext/spl/spl_exceptions.h>
#include <zend_exceptions.h>
#include <grpc/support/alloc.h>
#include "call_credentials.h"
#include "completion_queue.h"
#include "timeval.h"
#include "channel.h"
#include "byte_buffer.h"
Include dependency graph for call.c:

Go to the source code of this file.

Functions

bool create_metadata_array (zval *array, grpc_metadata_array *metadata)
 
php_grpc_zend_object create_wrapped_grpc_call (zend_class_entry *class_type TSRMLS_DC)
 
void grpc_init_call (TSRMLS_D)
 
zval * grpc_parse_metadata_array (grpc_metadata_array *metadata_array TSRMLS_DC)
 
void grpc_php_metadata_array_destroy_including_entries (grpc_metadata_array *array)
 
zval * grpc_php_wrap_call (grpc_call *wrapped, bool owned TSRMLS_DC)
 
 if (p->owned &&p->wrapped !=NULL)
 
 PHP_METHOD (Call, __construct)
 
 PHP_METHOD (Call, cancel)
 
 PHP_METHOD (Call, getPeer)
 
 PHP_METHOD (Call, setCredentials)
 
 PHP_METHOD (Call, startBatch)
 

Variables

static zend_function_entry call_methods []
 
zend_class_entry * grpc_ce_call
 

Function Documentation

◆ create_metadata_array()

bool create_metadata_array ( zval *  array,
grpc_metadata_array metadata 
)

Definition at line 114 of file call.c.

◆ create_wrapped_grpc_call()

php_grpc_zend_object create_wrapped_grpc_call ( zend_class_entry *class_type  TSRMLS_DC)

Definition at line 49 of file call.c.

◆ grpc_init_call()

void grpc_init_call ( TSRMLS_D  )

Definition at line 622 of file call.c.

◆ grpc_parse_metadata_array()

zval* grpc_parse_metadata_array ( grpc_metadata_array *metadata_array  TSRMLS_DC)

Definition at line 59 of file call.c.

◆ grpc_php_metadata_array_destroy_including_entries()

void grpc_php_metadata_array_destroy_including_entries ( grpc_metadata_array array)

Definition at line 168 of file call.c.

◆ grpc_php_wrap_call()

zval* grpc_php_wrap_call ( grpc_call wrapped,
bool owned  TSRMLS_DC 
)

Definition at line 182 of file call.c.

◆ if()

if ( p->owned &&p->wrapped = NULL)

Definition at line 42 of file call.c.

◆ PHP_METHOD() [1/5]

PHP_METHOD ( Call  ,
__construct   
)

Constructs a new instance of the Call class.

Parameters
Channel$channel_objThe channel to associate the call with. Must not be closed.
string$methodThe method to call
Timeval$deadline_objThe deadline for completing the call
string$host_override= "" The host is set by user (optional)

Definition at line 201 of file call.c.

◆ PHP_METHOD() [2/5]

PHP_METHOD ( Call  ,
cancel   
)

Cancel the call. This will cause the call to end with STATUS_CANCELLED if it has not already ended with another status.

Returns
void

Definition at line 559 of file call.c.

◆ PHP_METHOD() [3/5]

PHP_METHOD ( Call  ,
getPeer   
)

Get the endpoint this call/stream is connected to

Returns
string The URI of the endpoint

Definition at line 546 of file call.c.

◆ PHP_METHOD() [4/5]

PHP_METHOD ( Call  ,
setCredentials   
)

Set the CallCredentials for this call.

Parameters
CallCredentials$creds_objThe CallCredentials object
Returns
int The error code

Definition at line 570 of file call.c.

◆ PHP_METHOD() [5/5]

PHP_METHOD ( Call  ,
startBatch   
)

Start a batch of RPC actions.

Parameters
array$arrayArray of actions to take
Returns
object Object with results of all actions

Definition at line 261 of file call.c.

Variable Documentation

◆ call_methods

zend_function_entry call_methods[]
static
Initial value:
= {
PHP_FE_END
}

Definition at line 613 of file call.c.

◆ grpc_ce_call

zend_class_entry* grpc_ce_call


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