typedef struct meshlink_connection meshlink_connection_t;
+//Structure to hold a single bit
+
+typedef struct {
+unsigned int bit : 1;
+} Bit;
+
+//BitArray structure.
+
+typedef struct {
+Bit bitValues[1024]; //we will be able to use MAX 1024 sockets
+} bitmap_t;
+
/// Code of most recent error encountered.
typedef enum {
MESHLINK_OK, ///< Everything is fine
struct list_t *outpacketqueue;
- uint16_t socketsbitmap; //bitmap of 16 bits
+ bitmap_t socketsbitmap; //bitmap of 16 bits
int contradicting_add_edge;
int contradicting_del_edge;