Results 1 to 3 of 3

Thread: Winsock1.Accept requestID gives error :(

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715

    Unhappy

    This short code gives me an error:
    Code:
    Private Sub Winsock_ConnectionRequest(ByVal requestID As Long)
        'accept the request
        Winsock.Accept requestID
    End Sub
    It say's "invalid operation at current state."
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Originally posted by oetje
    This short code gives me an error:
    Code:
    Private Sub Winsock_ConnectionRequest(ByVal requestID As Long)
        'accept the request
        Winsock.Accept requestID
    End Sub
    It say's "invalid operation at current state."
    Do this
    Code:
    Private Sub Winsock_ConnectionRequest(ByVal requestID As Long)
        'accept the request
        Winsock.Close
        Winsock.Accept requestID
    End Sub
    []P
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Thanks a lot!
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

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