Project Malmo  0.30.0
Public Member Functions | Public Attributes | Friends | List of all members
malmo::ClientInfo Struct Reference

Structure containing information about a simulation client's address and port. More...

#include <ClientInfo.h>

Public Member Functions

 ClientInfo ()
 Constructs an empty ClientInfo struct.
 
 ClientInfo (const std::string &ip_address)
 Constructs a ClientInfo at the specified address listening on the default port. More...
 
 ClientInfo (const std::string &ip_address, int port)
 Constructs a ClientInfo at the specified address listening on the specified port. More...
 

Public Attributes

std::string ip_address
 The IP address of the client.
 
int port
 The port of the client.
 

Friends

std::ostream & operator<< (std::ostream &os, const ClientInfo &ci)
 

Detailed Description

Structure containing information about a simulation client's address and port.

Constructor & Destructor Documentation

malmo::ClientInfo::ClientInfo ( const std::string &  ip_address)

Constructs a ClientInfo at the specified address listening on the default port.

Parameters
ip_addressThe IP address of the client
malmo::ClientInfo::ClientInfo ( const std::string &  ip_address,
int  port 
)

Constructs a ClientInfo at the specified address listening on the specified port.

Parameters
ip_addressThe IP address of the client.
portThe number of the client port.

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