Results 1 to 5 of 5

Thread: my winsock component is broken?

  1. #1
    Axxxxxxxxx17
    Guest

    Question my winsock component is broken?

    hello, while trying to follow a tutorial involving sockets I found out that my winsock component has something wrong with it

    what should be:
    Code:
    Public ReadOnly Property State() As MSWinsockLib.StateConstants()
    is instead:
    Code:
    Public ReadOnly Property State() As Short
    and this is presenting all sorts of problems such as not being able to get the state of the socket I am working with

    so can anyone post a link to a working winsock component, tell me how to fix mine, or embarrass me by telling me im doing something wrong and that the winsock component is fine

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: my winsock component is broken?

    Did you manually type the code in to the program? If so maybe typed it incorrectly.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Axxxxxxxxx17
    Guest

    Re: my winsock component is broken?

    No I noticed it when I was trying to get the state of my socket, I saw it threw an error for some reason and then when i looked at the intellisense I saw what I described in my first post

    for instance when I type:
    Code:
    If sock.State = sckConnected
    with "sock" being my socket it comes back with an error

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: my winsock component is broken?

    Could you upload the source code? Someone will test it to see if they receive the same errors.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    Axxxxxxxxx17
    Guest

    Re: my winsock component is broken?

    Never mind I found the solution to my problem, I was supposed to have:
    StateConstants.sckListening
    instead of just sckListening

    But also, while trying to fix the problem myself I have discovered there is an inbuilt socket class at system.net.sockets but before I found this out I have been using the MSWinsockLib.dll which some people are saying is just for VB6

    so could anyone tell me which is better/which I should be using?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width