First semi-functional version.

This commit is contained in:
Luka Miljak 2014-03-18 17:31:42 +01:00
parent c33bd6ca4e
commit 0176443560
5 changed files with 37 additions and 13 deletions

View file

@ -34,6 +34,9 @@ struct tty_t {
char data[DATA_BUFLEN]; /* buffer for data received from tty */
};
struct server_t server;
struct client_t client; //TODO working with only 1 client, this can be expanded into a list
struct tty_t tty_dev;
/* Sets up the server on specific port, binds to a socket and listens for client connections. */
int server_setup(struct server_t *server, unsigned int port);