Support for (read-only) TCP connection agent communication

This commit is contained in:
Petr Baudis 2011-11-26 23:24:06 +01:00
parent a72882a743
commit 6b3a51139a
5 changed files with 75 additions and 12 deletions

17
connection.h Normal file
View file

@ -0,0 +1,17 @@
#ifndef BRMLIFE__CONNECTION_H
#define BRMLIFE__CONNECTION_H
#include <cstdio>
#include "map.h"
class connection {
public:
int fd;
connection(int fd_) : fd(fd_) {}
void senses(char around[4]);
};
#endif