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. Blocking TCP/IP Client Server

Blocking TCP/IP Client Server

Scheduled Pinned Locked Moved C#
sysadmindata-structuresxmlarchitecturehelp
3 Posts 3 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.
  • A Offline
    A Offline
    astrovirgin
    wrote on last edited by
    #1

    Hi, I am working on a blocking client/server architecture.I have a client which sends XML files to the server. It sends many XML files continuously (5 to 10 files per second) to the server using blocking communication method through TCP/IP. What I have to do is to read the XML file and store it in a queue and if the XML file is valid or invalid, give the response back to the client that the file is valid or invalid from the same communication path from where it come. Can anyone help me in this regard that how to acheive that. I am comfortable with queue, just want to know how to send the response back to the client using the same communication path from where the XML file comes. Thanks in advance.

    J M 2 Replies Last reply
    0
    • A astrovirgin

      Hi, I am working on a blocking client/server architecture.I have a client which sends XML files to the server. It sends many XML files continuously (5 to 10 files per second) to the server using blocking communication method through TCP/IP. What I have to do is to read the XML file and store it in a queue and if the XML file is valid or invalid, give the response back to the client that the file is valid or invalid from the same communication path from where it come. Can anyone help me in this regard that how to acheive that. I am comfortable with queue, just want to know how to send the response back to the client using the same communication path from where the XML file comes. Thanks in advance.

      J Offline
      J Offline
      Jimmanuel
      wrote on last edited by
      #2

      If you can already send files over a TCP socket from one computer to another then what's the problem you're having sending a message back over the same channel?

      1 Reply Last reply
      0
      • A astrovirgin

        Hi, I am working on a blocking client/server architecture.I have a client which sends XML files to the server. It sends many XML files continuously (5 to 10 files per second) to the server using blocking communication method through TCP/IP. What I have to do is to read the XML file and store it in a queue and if the XML file is valid or invalid, give the response back to the client that the file is valid or invalid from the same communication path from where it come. Can anyone help me in this regard that how to acheive that. I am comfortable with queue, just want to know how to send the response back to the client using the same communication path from where the XML file comes. Thanks in advance.

        M Offline
        M Offline
        mcldev
        wrote on last edited by
        #3

        There pleny of good code examples, look for TCP Queue IO or QIO.

        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