mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 22:44:45 +02:00
36 lines
1 KiB
C
36 lines
1 KiB
C
//
|
|
// 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 <glm/glm.hpp>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <sys/time.h>
|
|
#include <fcntl.h>
|
|
#include <string.h>
|
|
#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
|