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. Visual Basic
  4. TCPListener

TCPListener

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
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.
  • S Offline
    S Offline
    Subjugate
    wrote on last edited by
    #1

    I have a problem regarding my tcplistener. I went to MSDN to get the example for tcplistener and found out that it listen to character by character which is not wat i wan. Is that a way whereby i am able to read the client request as a sentence and not character??

    S 1 Reply Last reply
    0
    • S Subjugate

      I have a problem regarding my tcplistener. I went to MSDN to get the example for tcplistener and found out that it listen to character by character which is not wat i wan. Is that a way whereby i am able to read the client request as a sentence and not character??

      S Offline
      S Offline
      Scott Barbour
      wrote on last edited by
      #2

      The TcpListener object merely listens for connection requests. When a connection request comes in, you can either use that as a trigger (Which I have done for some purposes), or you can issue an AcceptTcpClient to create a TcpClient object for transmitting information back and forth. Additionally, the TcpListener object does not have events and you "should" have it configured as a listener thread that simply loops and checks for connection requests.

      I don't claim to be a know it all, for I know that I am not...

      I usually have an answer though.

      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