Project Malmo  0.21.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

◆ ClientInfo() [1/2]

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

◆ ClientInfo() [2/2]

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: