Skip to content

Conversation

JakubGrajciar
Copy link

simple mmeory management functions in vector and fifo folders.
header files cover basic functions and typedefs necessary for connection establishment.
implementation (and possibly demo app) will be added in next pull request

Makefile.am Outdated
# utils test
#
utils_test_SOURCES = test/utils_test.c test/vec_test.c
utils_test_LDADD = libutils.la
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one lib called libmemif.so please

src/socket.c Outdated

#define memif_min(a,b) a < b ? a : b

/* fifo is used as message queue, fifo will probably remain as it is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for message queue please use linked list instead of fifo. i.e.:
typedef struct memif_msg_queue_elt_ {
memif_msg_t msg;
int fd;
struct memif_msg_queue_elt_ *next;
} memif_msg_queue_elt_t;

@JakubGrajciar JakubGrajciar changed the title Header files + helper functions Header files, Hello/Init msg Jul 4, 2017
@JakubGrajciar JakubGrajciar changed the title Header files, Hello/Init msg Connection Establishment (slave-mode) Jul 10, 2017
@JakubGrajciar JakubGrajciar changed the title Connection Establishment (slave-mode) libmemif Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants