PacketPeerStream

Inherits: PacketPeer < Reference < Object

Category: Core

Brief Description

Wrapper to use a PacketPeer over a StreamPeer.

Member Functions

int get_input_buffer_max_size ( ) const
int get_output_buffer_max_size ( ) const
void set_input_buffer_max_size ( int max_size_bytes )
void set_output_buffer_max_size ( int max_size_bytes )
void set_stream_peer ( Reference peer )

Description

PacketStreamPeer provides a wrapper for working using packets over a stream. This allows for using packet based code with StreamPeers. PacketPeerStream implements a custom protocol over the StreamPeer, so the user should not read or write to the wrapped StreamPeer directly.

Member Function Description

  • int get_input_buffer_max_size ( ) const
  • int get_output_buffer_max_size ( ) const
  • void set_input_buffer_max_size ( int max_size_bytes )
  • void set_output_buffer_max_size ( int max_size_bytes )

Set the StreamPeer object to be wrapped.