Results 1 to 5 of 5

Thread: vb6 UDP sending data

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2008
    Posts
    42

    vb6 UDP sending data

    aaaaaaaaaaaaaaaa
    Last edited by hellowonn; May 9th, 2008 at 10:05 PM.

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: vb6 UDP sending data

    RemoteHostIP is a read-only property when you are connected to someone over TCP.

    Use RemoteHost instead.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2008
    Posts
    42

    Re: vb6 UDP sending data

    Ok I did that but now I'm getting this:
    http://support.microsoft.com/kb/260018

    I have a listbox of "connected" clients (I know they arent connected, have just sent data) and I want to send some data to back to all of them, but im getting that error.

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: vb6 UDP sending data

    Have you tried the workaround suggested in the article?
    VB6 Code:
    1. Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
    2.    Dim szData As String
    3.  
    4.    On Error Resume Next
    5.    Winsock1.GetData szData
    6.    If Err Then
    7.       ' handle the error here
    8.    End if
    9. End Sub
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2008
    Posts
    42

    Re: vb6 UDP sending data

    That isn't going to get the data sent .

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