Skip to content

A simple server in Go that will accept connections on a TCP socket and read in a newline-terminated string. The server reverses the string, and sends the result back over the socket to the client.

License

Notifications You must be signed in to change notification settings

cwbutler/reverse-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

reverse-server

A simple server in Go that will accept connections on a TCP socket and read in a newline-terminated string. The server reverses the string, and send the result back over the socket to the client.

Test

go run reverse-server

Then in another command prompt: echo "Hello World\n" | nc localhost 8080

This uses netcat to send string to localhost on port 8080.

About

A simple server in Go that will accept connections on a TCP socket and read in a newline-terminated string. The server reverses the string, and sends the result back over the socket to the client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages