summaryrefslogtreecommitdiff
path: root/network.h
AgeCommit message (Collapse)Author
2022-08-02network: Add `get_sock_addr()`mrb0nk500
Much like with `create_socket()`, this just makes it easier to get the sockaddr from a socket descriptor, without having to duplicate everything over, and over again.
2022-08-02network: Add `create_socket()`mrb0nk500
This function makes makes it easier to create sockets, without having to duplicate code.
2022-08-02network: Add `addr_to_str()`mrb0nk500
This function takes a `sockaddr`, along with the length of the `sockaddr`, and creates a string from that address.
2021-06-13Make the `data` member of `cmd` a flexable arraymrb0nk500
member. This is to make it easier to send the packet, due to not having to create an extra buffer before sending the packet.
2021-06-13Changed the order of the struct definitions inmrb0nk500
`network.h`. It wouldn't compile due to them not being defined eariler, and I don't want to do prototyping.
2021-06-12Start work on the networking code.mrb0nk500