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

Public Member Functions

 start ($metadata)
 
 read ()
 
 write ($data)
 
 writesDone ()
 
 getStatus ()
 
- 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 allows for sending and recieving messages in streams in any order.

Member Function Documentation

Grpc\BidiStreamingCall::getStatus ( )

Wait for the server to send the status, and return it.

Returns
object The status object, with integer $code, string $details, and array $metadata members
Grpc\BidiStreamingCall::read ( )

Reads the next value from the server.

Returns
The next value from the server, or null if there is none
Grpc\BidiStreamingCall::start (   $metadata)

Start the call

Parameters
array$metadataMetadata to send with the call, if applicable
Grpc\BidiStreamingCall::write (   $data)

Write a single message to the server. This cannot be called after writesDone is called.

Parameters
ByteBuffer$dataThe data to write
Grpc\BidiStreamingCall::writesDone ( )

Indicate that no more writes will be sent.


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