···4455I am using a sockets library I developed mysel. For more information on how the
66sockets library was developed, feel free to visit the repo:
77-- https://git.gay/sona/enchufe
77+- https://tangled.org/@stau.space/enchufe
88+99+This sockets library relies on having GNU's version of the POSIX utilities that
1010+should be available on a POSIX compliant system. Additionally, I am using GNU's
1111+implementation of semaphores, although they are not POSIX, they should be
1212+available on most systems.
813914For threads, I am using a builtin library called `threads.h`. This library is
1015documented on [cppreference.com](https://cppreference.com) as:
···2328## Cluster
24292530```sh
2626-make cluster.py
3131+./build.sh cluster.py
2732```
28332934This will simply run the cluster on the server's loopback `127.0.0.1` and on
3035port `42069`. If youu want to supply your own server and port, use:
31363237```sh
3333-make cluster.py ADDRESS=<server address> PORT=<server port>
3838+./build.sh cluster.py server_address server_port
3439```
35403636-where `<server address>` is the IP address of the cluster, and `<server port>`
3737-is the port number of the cluster. Remember that you must put the words
3838-"`ADDRESS`" and "`PORT`" before the `<server address>` and `<server port>`. If
3939-you don't `make` will not detect that you passed those arguments to the
4040-executable.
4141+where `server_address` is the IPv4 address of the cluster, and `server_port`
4242+is the port number of the cluster.
41434244## Embedded device
4345···4648will let make know on which server and port you want to run it.
47494850```sh
4949-make edevice.py ADDRESS=<server address> PORT=<server port>
5151+./build.sh edevice.py server_address server_port
5052```
51535252-where `<server address>` is the IP address of the cluster, and `<server port>`
5454+where `server_address` is the IPv4 address of the cluster, and `server_port`
5355is the port number of the cluster.
54565557# Building
···6971To build the cluster. From these two executables, you can then run the programs
7072like,
7173```sh
7272-./.build/cluster <server address> <server port>
7373-./.build/edevice <server address> <server port>
7474+./.build/cluster server_address server_port
7575+./.build/edevice server_address server_port
7476```
75777678# Contributions
77797878-I would like to thank Gabriel Romero and Anasofia Colon while developing this
7979-project. Without them, this project would have been impossible.
8080+I would like to thank Gabriel Romero, Pablo Torres, Sergio Rodriguez and
8181+Anasofia Colon while developing this project. Without them, this project would
8282+have been impossible.