// // Agent.h // interface // // Created by Philip Rosedale on 11/20/12. // Copyright (c) 2012 High Fidelity, Inc. All rights reserved. // #ifndef __interface__Agent__ #define __interface__Agent__ #include #include #include #include #include #include #include #include "UDPSocket.h" #include "Audio.h" const int AGENT_UDP_PORT = 40103; int update_agents(char * data, int length); int add_agent(char * address, unsigned short port, char *private_address, unsigned short private_port, char agentType); int broadcastToAgents(UDPSocket * handle, char * data, int length, int sendToSelf); void pingAgents(UDPSocket *handle); void setAgentPing(char * address, unsigned short port); void update_agent(char * address, unsigned short port, char * data, int length); void render_agents(int renderSelf, float * myLocation); void kludgyMixerUpdate(Audio audio); int getAgentPing(int agentNumber); int getAgentCount(); char * getAgentAddress(int agentNumber); #endif