tmsick / tcp-ip-go

A TCP/IP protocol server written in Go. (Not using net package)

Home Page:https://zenn.dev/kawa1214/books/5888c6b3554ffa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial

  1. Build docker image
make build
  1. Run docker container
make up
  1. Run main.go(in docker container)
go run example/todo/main.go
  1. curl execution(in docker container)
curl --interface tun0 -X POST -H "Content-Type: application/json" -d '{
    "title": "ToDo2"
}' 'http://10.0.0.2/todos'

curl --interface tun0 http://10.0.0.2/todos

Dump TCP packets using Wireshark

  1. Packet Monitoring(in docker container)
make capture
  1. Open wireshark/capture.pcap in wireshark

About

A TCP/IP protocol server written in Go. (Not using net package)

https://zenn.dev/kawa1214/books/5888c6b3554ffa

License:MIT License


Languages

Language:Go 94.4%Language:Dockerfile 3.9%Language:Makefile 1.7%