First semi-functional version.
This commit is contained in:
parent
c33bd6ca4e
commit
0176443560
5 changed files with 37 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue