Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. What to use?

What to use?

Scheduled Pinned Locked Moved C#
sysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hg2705
    wrote on last edited by
    #1

    Im creating a client server app. One server and multiple clients. Every client is sending serialized messages to the server. Every message has to arrive (No UDP). What to use. Chould I use TCPclient and send one message and close connection to server or should I use something like TcpChannel (Not sure what it is, or if it can send serialized objects). The time between messages vary from miliseconds to hours.

    F 1 Reply Last reply
    0
    • H hg2705

      Im creating a client server app. One server and multiple clients. Every client is sending serialized messages to the server. Every message has to arrive (No UDP). What to use. Chould I use TCPclient and send one message and close connection to server or should I use something like TcpChannel (Not sure what it is, or if it can send serialized objects). The time between messages vary from miliseconds to hours.

      F Offline
      F Offline
      Febret
      wrote on last edited by
      #2

      The best solution would be to use a TCPClient wrapped inside some sort of 'TCPManager' class that implements a timeout service. When you have to send a message the TCPManager class opens the connection and keeps it open for, say, 5 seconds before closind it again if there are no new messages to send.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups