gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | List of all members
Grpc\UnaryCall Class Reference
Inheritance diagram for Grpc\UnaryCall:
Grpc\AbstractCall

Public Member Functions

 start ($arg, $metadata=array())
 
 wait ()
 
- Public Member Functions inherited from Grpc\AbstractCall
 __construct (Channel $channel, $method, $deserialize)
 
 getMetadata ()
 
 cancel ()
 

Additional Inherited Members

- Protected Member Functions inherited from Grpc\AbstractCall
 deserializeResponse ($value)
 
- Protected Attributes inherited from Grpc\AbstractCall
 $call
 
 $deserialize
 
 $metadata
 

Detailed Description

Represents an active call that sends a single message and then gets a single response.

Member Function Documentation

Grpc\UnaryCall::start (   $arg,
  $metadata = array() 
)

Start the call

Parameters
$argThe argument to send
array$metadataMetadata to send with the call, if applicable
Grpc\UnaryCall::wait ( )

Wait for the server to respond with data and a status

Returns
[response data, status]

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