SuperTuxKart
Classes | Functions
protocol.hpp File Reference

Generic protocols declarations. More...

#include "network/protocol_enum.hpp"
#include "utils/no_copy.hpp"
#include "utils/types.hpp"
#include <memory>
#include <stddef.h>
Include dependency graph for protocol.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CallbackObject
 Class that must be inherited to pass objects to protocols. More...
 
class  Protocol
 Abstract class used to define the global protocol functions. More...
 

Functions

NetworkStringProtocolUtils::getNetworkString (ProtocolType type, size_t capacity)
 Returns a network string with the given type. More...
 

Detailed Description

Generic protocols declarations.

Function Documentation

◆ getNetworkString()

NetworkString * ProtocolUtils::getNetworkString ( ProtocolType  type,
size_t  capacity 
)

Returns a network string with the given type.

\capacity Default preallocated size for the message.