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 and TcpClient

Tcplistener and TcpClient

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

    I would like to check if it is true that both the listener and the client must be in the same file but different class to work? I try separating them as 2 just as i wan to put each in 2 separate CPU and it seen to have some error on the client side. i Dim client as new tcpclient they underline it as error.

    D 1 Reply Last reply
    0
    • S Subjugate

      I would like to check if it is true that both the listener and the client must be in the same file but different class to work? I try separating them as 2 just as i wan to put each in 2 separate CPU and it seen to have some error on the client side. i Dim client as new tcpclient they underline it as error.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      No, you can have them both in the same file, same class, different files, different classes, partial classes, ... whatever. They'll still work.

      Subjugate wrote:

      i Dim client as new tcpclient they underline it as error.

      Probably because you're missing Imports or you haven't specified the entire fully qualified name of your TcpClient class.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        No, you can have them both in the same file, same class, different files, different classes, partial classes, ... whatever. They'll still work.

        Subjugate wrote:

        i Dim client as new tcpclient they underline it as error.

        Probably because you're missing Imports or you haven't specified the entire fully qualified name of your TcpClient class.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        S Offline
        S Offline
        Subjugate
        wrote on last edited by
        #3

        So i would like to ask if u have any example of tcplistener and tcpclient both as stand alone application to pass me? As i can only find file that combine them together online. I need to test them out on 2 seperate pc before i can progress in my project. Thanks for the help.

        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