4 Replies - 180 Views - Last Post: 30 December 2019 - 01:44 PM Rate Topic: -----

#1 protexxi   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 08-November 14

Looking for guidance TCP Server

Posted 30 December 2019 - 11:42 AM

Hi all!

Looking for some advice,

i need a simple respond server that will simply respond with a object when a requested from multiple clients.

the application of this is to receive a string from the client process it though various functions and return a string

for example client will send "Hello"
the sever will take hello though a switch statement and find and execute the corresponding code and return a string to the client.

the server needs to handle receiving separate commands from separate clients and respond the correct return to the correct client,

speed at this point insnt important.

my question is whats the best way to implement this?

a TCP or HTTP i have zero clue where to start, also due to lack of lingo google its coming up stubbs
please point me in direction of documents or code examples i wish to learn

Is This A Good Question/Topic? 0
  • +

Replies To: Looking for guidance TCP Server

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15506
  • View blog
  • Posts: 62,083
  • Joined: 12-June 08

Re: Looking for guidance TCP Server

Posted 30 December 2019 - 11:50 AM

The MSDN docs have a nice example of TCP and TCPListener.

https://docs.microso...ng-tcp-services
https://medium.com/f...cp-2213dc2e9b0c
Was This Post Helpful? 1
  • +
  • -

#3 protexxi   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 08-November 14

Re: Looking for guidance TCP Server

Posted 30 December 2019 - 11:57 AM

thanks for the speedy reply i looked at msdocs this morning, i couldn't get anything with multiply clients to works following it

thanks jake
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15506
  • View blog
  • Posts: 62,083
  • Joined: 12-June 08

Re: Looking for guidance TCP Server

Posted 30 December 2019 - 12:07 PM

The second link explains how multiple clients connect to one listener.
Was This Post Helpful? 0
  • +
  • -

#5 protexxi   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 08-November 14

Re: Looking for guidance TCP Server

Posted 30 December 2019 - 01:44 PM

Ah, perfect i didnt notice the 2nd link my bad thanks :)

+1
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1