Workspace 6.21.5
Public Member Functions | Public Attributes | List of all members
WorkspaceId Struct Reference

Identifies a running Workspace client process by the host / port that it is connected on.

#include <Workspace/Application/Web/workspaceweb_c.h>

Public Member Functions

 WorkspaceId ()
 
 WorkspaceId (const QString &client_host, int client_port, int server_port)
 
 WorkspaceId (const WorkspaceId &other)
 
WorkspaceIdoperator= (const WorkspaceId &rhs)
 
bool operator== (const WorkspaceId &rhs) const
 

Public Attributes

char host [WORKSPACE_MAX_HOST_LEN] {}
 
int key
 
int port
 

Constructor & Destructor Documentation

◆ WorkspaceId() [1/3]

WorkspaceId ( )
inline

◆ WorkspaceId() [2/3]

WorkspaceId ( const QString &  client_host,
int  client_port,
int  server_port 
)

◆ WorkspaceId() [3/3]

WorkspaceId ( const WorkspaceId other)

Member Function Documentation

◆ operator=()

WorkspaceId & operator= ( const WorkspaceId rhs)

◆ operator==()

bool operator== ( const WorkspaceId rhs) const

We define the assignment operator so that WorkspaceId's can be compared in the case of any hash collisions.

Member Data Documentation

◆ host

char host[WORKSPACE_MAX_HOST_LEN] {}

◆ key

int key

◆ port

int port