Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Client
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. const int port = 63003;
  10.  
  11. var client = new Client();
  12.  
  13. while (true)
  14. {
  15. string command = Console.ReadLine();
  16. if (command == "exit")
  17. {
  18. return;
  19. }
  20.  
  21. var responce = client.GetResponce(port, command);
  22. string answer = responce.Result;
  23.  
  24. Console.WriteLine(answer);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement