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. it send data to tcp/ip port number, ex 8080, now i want to write socket program to read data from that port. Any body help me? How can i do that?

it send data to tcp/ip port number, ex 8080, now i want to write socket program to read data from that port. Any body help me? How can i do that?

Scheduled Pinned Locked Moved C#
questionhelp
7 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.
  • S Offline
    S Offline
    sivaramireddy p
    wrote on last edited by
    #1

    it send data to tcp/ip port number, ex 8080, now i want to write socket program to read data from that port. Any body help me? How can i do that? Thanks,

    A 1 Reply Last reply
    0
    • S sivaramireddy p

      it send data to tcp/ip port number, ex 8080, now i want to write socket program to read data from that port. Any body help me? How can i do that? Thanks,

      A Offline
      A Offline
      Andrei Ungureanu
      wrote on last edited by
      #2

      Create a new socket, bind it to 8080 port and use the Accept or BeginAccept methods (synchronous or asynchronous). When you have accepted a socket use the Receive or BeginReceive methods to read from that socket.

      I will use Google before asking dumb questions

      S 1 Reply Last reply
      0
      • A Andrei Ungureanu

        Create a new socket, bind it to 8080 port and use the Accept or BeginAccept methods (synchronous or asynchronous). When you have accepted a socket use the Receive or BeginReceive methods to read from that socket.

        I will use Google before asking dumb questions

        S Offline
        S Offline
        sivaramireddy p
        wrote on last edited by
        #3

        plz send me details code

        A P 2 Replies Last reply
        0
        • S sivaramireddy p

          plz send me details code

          A Offline
          A Offline
          Andrei Ungureanu
          wrote on last edited by
          #4

          Why do everyone want to have their problems resolved by others with no sweat at all? Search the web and MSDN. I gave you enough hints. MSDN also has a few examples

          I will use Google before asking dumb questions

          P 1 Reply Last reply
          0
          • S sivaramireddy p

            plz send me details code

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            He's sent you enough information for you to go and do some research on your own on google. That's the way this site works, it's not rentacoder where people give you code in exchange for money.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            1 Reply Last reply
            0
            • A Andrei Ungureanu

              Why do everyone want to have their problems resolved by others with no sweat at all? Search the web and MSDN. I gave you enough hints. MSDN also has a few examples

              I will use Google before asking dumb questions

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Andrei - a 5 from me for the answer you originally gave.:)

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              A 1 Reply Last reply
              0
              • P Pete OHanlon

                Andrei - a 5 from me for the answer you originally gave.:)

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                A Offline
                A Offline
                Andrei Ungureanu
                wrote on last edited by
                #7

                Thanks. :)

                I will use Google before asking dumb questions

                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