dtDIS::Connection Class Reference

Makes a multicast connection to support DIS networks. More...

#include <connection.h>

List of all members.

Public Member Functions

void Connect (unsigned int port, const char *host)
 makes a socket connection for the specified network.
void Disconnect ()
 closes the socket connection.
void Send (const char *buf, size_t numbytes)
 publishes the data to the network.
size_t Receive (char *buf, size_t numbytes)
 allocates buf with size numbytes.


Detailed Description

Makes a multicast connection to support DIS networks.

Note:
requires the HawkNL socket library. http://www.hawksoft.com/hawknl/

Member Function Documentation

void Connection::Connect ( unsigned int  port,
const char *  host 
)

makes a socket connection for the specified network.

Parameters:
port the serial port for the connection's network host.
host the name of the network host.

void Connection::Disconnect (  ) 

closes the socket connection.

void Connection::Send ( const char *  buf,
size_t  numbytes 
)

publishes the data to the network.

Parameters:
buf the buffer to be written to with network bytes.
numbytes the number of bytes contained in the the buffer.

size_t Connection::Receive ( char *  buf,
size_t  numbytes 
)

allocates buf with size numbytes.

Parameters:
buf the buffer to be written to with network bytes
numbytes the maximum index used for the buffer (buf)
Returns:
the number of bytes read from the connection


http://www.delta3d.org
2.0.0 generated 14 Feb 2008