https://github.com/escalopa/go-client-server-socket
A based socket connection between client and server using low-level sockets on golang
https://github.com/escalopa/go-client-server-socket
client-server golang socket
Last synced: 2 months ago
JSON representation
A based socket connection between client and server using low-level sockets on golang
- Host: GitHub
- URL: https://github.com/escalopa/go-client-server-socket
- Owner: escalopa
- Created: 2022-09-25T06:53:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T11:21:20.000Z (over 2 years ago)
- Last Synced: 2025-01-19T15:20:10.761Z (4 months ago)
- Topics: client-server, golang, socket
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-client-server-socket
This project goal is to create a connections socket between `client` & `server` only using `sockets`
### Installation
1. Clone the repo with command
```shell
git clone https://github.com/escalopa/go-client-server-socket.git
```
2. Install go from the [link](https://go.dev/doc/install)(if not already installed)
2. Set GOROOT to path where go is installed, on linux by default it is on `/usr/local/go`
3. Set GOPATH to home directory of the device
4. Open root dir of the project and run the following commands### Server
Run server side using the following command
```shell
go run ./server/timeserver.go
```### Client
Run client side using the following command
```shell
go run ./client/timeclient.go
```