An open API service indexing awesome lists of open source software.

https://github.com/marcelovicentegc/client-socket

⚽️ A collection of client sockets written in C, Go, Python and Lua.
https://github.com/marcelovicentegc/client-socket

c client-socket computer-network golang lua python socket socket-programming tcp

Last synced: about 1 month ago
JSON representation

⚽️ A collection of client sockets written in C, Go, Python and Lua.

Awesome Lists containing this project

README

          

# ⚽️ client-socket

Client sockets that performs a GET request to any website on each run.

## Directions

### Python

1. Make sure you have `python 3.6.5` onwards installed
2. Run `python3 src/client_socket.py ` (i.g. `python src/client_socket.py www.google.com 80`)

### C

1. Compile it: `gcc src/client_socket.c -o ` (i.g. `gcc src/client_socket.c -o client_socket`)
2. Run it: `./ ` (i.g. `./client_socket www.google.com 80`)

### Go️

1. Make sure you have `go 1.12.5` onwards installed
2. Run `go run src/goClientSocket/clientSocket.go --hostname --port ` (i.g. `go run src/goClientSocket/clientSocket.go --hostname www.google.com --port 80`)

### Lua

1. Make sure you have `lua 5.2` onwards installed and [Lua's socket helper](https://github.com/diegonehab/luasocket)
2. Run `lua src/client_socket.lua ` (i.g. `lua src/client_socket.lua www.google.com 80`)