diff --git a/src/msg.h b/src/msg.h index 24f14a9..636d466 100644 --- a/src/msg.h +++ b/src/msg.h @@ -12,6 +12,11 @@ struct message { uint32_t height; // normally 80 //char **image; // dimension is width x height char *image; // dimension is width x height + +/* + * image[row][col] >>> image[row*width+col]; + */ + }; int getBufferSize(struct message *msg); diff --git a/src/net.c b/src/net.c index 4376155..555c1e4 100644 --- a/src/net.c +++ b/src/net.c @@ -13,6 +13,7 @@ #include #include "misc.h" +#include "msg.h" void *get_in_addr(struct sockaddr *sa) {