mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-03 10:23:38 +02:00
22 lines
261 B
C++
22 lines
261 B
C++
#ifndef BRMLIFE__CONNECTION_H
|
|
#define BRMLIFE__CONNECTION_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "map.h"
|
|
|
|
class connection {
|
|
public:
|
|
int fd;
|
|
|
|
connection(int fd_) : fd(fd_) {}
|
|
|
|
~connection()
|
|
{
|
|
close(fd);
|
|
}
|
|
|
|
void senses(int tick_id, char around[4]);
|
|
};
|
|
|
|
#endif
|