![]() |
Public API Reference |
#include <gconnect.h>
Inheritance diagram for iGUIConnection:
Public Methods | |
virtual size_t | GetDataFromClient (csGUIClientHandle, void *, size_t)=0 |
The server calls this every frame for each client. More... | |
virtual bool | SendDataToClient (csGUIClientHandle, void *buf, size_t len)=0 |
The server calls this whenever it wants to send data to a client. More... | |
virtual size_t | GetDataFromServer (void *data, size_t len)=0 |
The client helper calls this when it wants to see if the server has sent any data. More... | |
virtual bool | SendDataToServer (void *buf, size_t len)=0 |
The client helper calls then when it wants to send data to the server. More... |
For a "loopback" style setup (where the client(s) and server are on the same computer), there can be one single instance of this class. If the client(s) and server are on different computers, there should be one instance of this class on each computer.
Definition at line 24 of file gconnect.h.
|
The server calls this every frame for each client.
|
|
The client helper calls this when it wants to see if the server has sent any data. It writes the data to the given buffer and returns the number of bytes actually written. |
|
The server calls this whenever it wants to send data to a client.
|
|
The client helper calls then when it wants to send data to the server. It reads len bytes from the given buffer. |