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. Port

Port

Scheduled Pinned Locked Moved C#
question
4 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.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    Hi, In a socket I want to send data on port 5004 and receive it on port 5004. I want to know, maybe another data on this port or only the data that I sent ?

    Best wishes

    J 1 Reply Last reply
    0
    • M mehrdadc48

      Hi, In a socket I want to send data on port 5004 and receive it on port 5004. I want to know, maybe another data on this port or only the data that I sent ?

      Best wishes

      J Offline
      J Offline
      Jakob Farian Krarup
      wrote on last edited by
      #2

      Hi mehrdadc48 :-D I don't understand this part:

      mehrdadc48 wrote:

      I want to know, maybe another data on this port or only the data that I sent ?

      Could you explain it another way? I'm guessing you will need the TcpListener class. Try Googling that, or put another message in this thread explaining what you want to do - in a little more detail.

      Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't

      M 1 Reply Last reply
      0
      • J Jakob Farian Krarup

        Hi mehrdadc48 :-D I don't understand this part:

        mehrdadc48 wrote:

        I want to know, maybe another data on this port or only the data that I sent ?

        Could you explain it another way? I'm guessing you will need the TcpListener class. Try Googling that, or put another message in this thread explaining what you want to do - in a little more detail.

        Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't

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

        Hi Jakob Lund Krarup for example on port 5004 that I working with it, is it possible to receive another data that I don't send it ?

        Best wishes

        J 1 Reply Last reply
        0
        • M mehrdadc48

          Hi Jakob Lund Krarup for example on port 5004 that I working with it, is it possible to receive another data that I don't send it ?

          Best wishes

          J Offline
          J Offline
          Jakob Farian Krarup
          wrote on last edited by
          #4

          Hi mehrdadc48 I hope I am understanding you when I guess: You want to listen on port 5004 for any data sent to it? I beleive you can set up a TcpListener object to listen for any data sent to a given port on the machine you're running the program from. If you are using .net 2.0: http://msdn.microsoft.com/msdnmag/issues/05/08/HighPerformanceSockets/default.aspx[^] If you are using .net 1.0 http://www.eggheadcafe.com/articles/20020323.asp[^]

          Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't

          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