Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 966 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 966 Bytes

Simple TCP Server Build Status

A simple TCP server that support mutiple connections.


setup mock api

the mock server using mockingjay server

Build application

$ go get github.com/quii/mockingjay-server
$ cd $GOPATH/src/github.com/quii/mockingjay-server
$ ./build.sh
$ cd simple-tcp-server
$ mockingjay-server -config=fake.yaml -monkeyConfig=monkey.yaml

more detail: https://github.com/quii/mockingjay-server


build tcp server

command

$ go build
$ ./server

build tcp client

command

$ go build
$ ./client

status

you can check server status when server is up.

default url: http://127.0.0.1:1337/status

$ curl -X GET http://127.0.0.1:1337/status

2018-12-10 3 38 08