Skip to content

vince-test-org/tcp-echoserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcp-echoserver

For personal test.

Return based on input

  • number: return number + 1
  • etc: return itself

env

  • PORT (required)

ex)

$ PORT=65432 cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/tcp-echoserver`
Server listening on 0.0.0.0:65432

Run server

$ telnet 0.0.0.0 65432
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'.
a
a
1
2^CConnection closed by foreign host.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages