Skip to content
Snippets Groups Projects
Commit c1971cc1 authored by Vlad-Andrei BĂDOIU (78692)'s avatar Vlad-Andrei BĂDOIU (78692)
Browse files

lab4: Add README.md

parent 76c76518
No related branches found
No related tags found
No related merge requests found
Pachetele primite/trimise de router vor avea urmatorul format:
```
typedef struct {
int len;
char payload[MAX_LEN];
int interface;
} msg;
```
In implementarea laboratorului vom folosii urmatoarele functii: **get\_packet**
care primeste un pachet si **send\_packet** care trimite un pachet pe o
interfata specificata.
```
/* Blocking function, blocks if there is no packet to be received.
On success returns 0 and populates m. m must be allocated! */
int get_packet(msg *m);
int send_packet(int interface, msg *m);
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment