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. TCPIP client server communications

TCPIP client server communications

Scheduled Pinned Locked Moved C#
sysadmintutorialquestion
3 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.
  • D Offline
    D Offline
    dwolver
    wrote on last edited by
    #1

    I'm trying to learn how to communicate between applications and evaluation of the various projects i've come across have helped, but i still have one area i'm not having luck with. Lets say i have a tcpclient connected and it sends a message to server, servers listener accepts it adds the client object to a list and can respond to requests from the client. The connection stays active and my client gui app can press button repeating the process. Now on sever side gui app lets say i want to initiate a message to the client. I try to utilize the same client object and send some data, but client does not get the message until the connection ends, ie a disconnect. Anyone have any code examples or links to some that would demonstrate this process?

    L 1 Reply Last reply
    0
    • D dwolver

      I'm trying to learn how to communicate between applications and evaluation of the various projects i've come across have helped, but i still have one area i'm not having luck with. Lets say i have a tcpclient connected and it sends a message to server, servers listener accepts it adds the client object to a list and can respond to requests from the client. The connection stays active and my client gui app can press button repeating the process. Now on sever side gui app lets say i want to initiate a message to the client. I try to utilize the same client object and send some data, but client does not get the message until the connection ends, ie a disconnect. Anyone have any code examples or links to some that would demonstrate this process?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1---Building-the-Chat-Client.html[^]

      D 1 Reply Last reply
      0
      • L Lost User

        http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1---Building-the-Chat-Client.html[^]

        D Offline
        D Offline
        dwolver
        wrote on last edited by
        #3

        Thanks I seem to have gotten that one to work the way i want!

        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