/tcp-ip-go

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

Primary LanguageGoMIT LicenseMIT

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