mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 05:44:44 +02:00
32 lines
691 B
C++
32 lines
691 B
C++
//
|
|
// AgentSocket.h
|
|
// hifi
|
|
//
|
|
// Created by Stephen Birarda on 2/19/13.
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi__AgentSocket__
|
|
#define __hifi__AgentSocket__
|
|
|
|
#include <iostream>
|
|
|
|
class AgentSocket {
|
|
public:
|
|
AgentSocket();
|
|
AgentSocket(const AgentSocket &otherAgentSocket);
|
|
AgentSocket& operator=(AgentSocket otherAgentSocket);
|
|
~AgentSocket();
|
|
|
|
char *address;
|
|
unsigned short port;
|
|
private:
|
|
void swap(AgentSocket &first, AgentSocket &second);
|
|
};
|
|
|
|
inline std::ostream& operator<<(std::ostream & Str, AgentSocket const &socket) {
|
|
Str << socket.address << ":" << socket.port;
|
|
return Str;
|
|
}
|
|
|
|
#endif /* defined(__hifi__AgentSocket__) */
|