mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
Support for (read-only) TCP connection agent communication
This commit is contained in:
parent
a72882a743
commit
6b3a51139a
5 changed files with 75 additions and 12 deletions
17
connection.h
Normal file
17
connection.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue