Results 1 to 5 of 5

Thread: UDP connection doesn't fire _sendcomplete?

Threaded View

  1. #1

    Thread Starter
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Resolved UDP connection doesn't fire _sendcomplete?

    Hi,I'm using the following code for an array of TCP connections.
    It prevents errors from a blocked connection if a second message has to be sent through that WinsockTCP array. That works so far.
    But I tried to use the exact same with a UDP connection, the problem seams to be that the WinSockUPD_SendComplete(Index As Integer) Sub never fires. Why is that?

    VB Code:
    1. Dim SendCompleteTCP as Boolean
    2. Dim Message as String
    3.  
    4. Public Sub WinsockTCP_senden(Verbindung As Integer, Message As String)
    5. SendCompleteTCP = False
    6. WinSockTCP(Verbindung).SendData Message
    7. Do
    8.     DoEvents
    9. Loop Until SendCompleteTCP = True
    10. End Sub
    11.  
    12. Private Sub WinSockTCP_SendComplete(Index As Integer)
    13. SendCompleteTCP = True
    14. End Sub
    Last edited by opus; Oct 17th, 2006 at 02:54 PM.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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