Skip to content

ivan-svetlich/tcp-unit-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Unit Converter

Simple TCP server and client for unit conversion.

Supported commands:

Command Argument Description
lb2kg number from pounds to kilograms
kg2lb number from kilograms to pounds
in2cm number from inches to centimeters
cm2in number from centimeters to inches
help - list of supported commands
quit - close connection

Technologies

  • C#
  • .NET 6
  • TCP

Usage

To start the TCP server, cd to the server folder and run:

dotnet server

You should see the message Waiting for a connection, indicating that the server is listening.

To use the client, cd to the client folder and run:

dotnet client

If a connection was established, you'll be asked to enter a message. For example, to convert 100 kg to punds:

Enter your message: kg2lb 100

The server should respond 100 kg is 220.4623 lbs.

About

TCP server and client for unit conversion

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages