mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 22:23:16 +02:00
26 lines
579 B
C++
26 lines
579 B
C++
//
|
|
// agent.h
|
|
// interface
|
|
//
|
|
// Created by Philip Rosedale on 11/20/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_agent_h
|
|
#define interface_agent_h
|
|
|
|
#include "glm/glm.hpp"
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <fcntl.h>
|
|
#include <string.h>
|
|
#include "network.h"
|
|
|
|
void update_agents(char * data, int length);
|
|
int add_agent(std::string * IP);
|
|
int broadcast_to_agents(int handle, char * data, int length);
|
|
void update_agent(in_addr addr, char * data, int length);
|
|
void render_agents();
|
|
|
|
#endif
|