Sirikata
Static Public Member Functions
Sirikata::Network::Frame Struct Reference

A collection of simpling framing routines for network messages you want to send on a stream. More...

#include <Frame.hpp>

List of all members.

Static Public Member Functions

static std::string write (const void *data, uint32 len)
 Writes the data to the stream as a message.
static std::string write (const std::string &data)
static std::string parse (std::string &data)
 Checks if a full message is available.

Detailed Description

A collection of simpling framing routines for network messages you want to send on a stream.

This just provides utilities for writing a frame around the data and reading them back, avoiding duplicated error-prone code.


Member Function Documentation

std::string Sirikata::Network::Frame::parse ( std::string &  data) [static]
std::string Sirikata::Network::Frame::write ( const void *  data,
uint32  len 
) [static]
std::string Sirikata::Network::Frame::write ( const std::string &  data) [static]

References write().


The documentation for this struct was generated from the following files: