Results 1 to 2 of 2

Thread: Winsock question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    23

    Winsock question

    How does one tell when a winsock.SendData has completed?

    I thought there would be some state field to indicate that it completed but didn't find anything like that. The only thing that I can see that might work is the "bytesreceived" status. If I wait until I receive something back, or reach some arbitrary timeout, but there must be a better way.

    Any suggestions?

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Winsock question

    There is a SendComplete event that fires when the data has been sent.
    VB Code:
    1. Private Sub Winsock1_SendComplete()
    2.      'message sent!!
    3. End Sub
    Chris

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