Results 1 to 3 of 3

Thread: Qs: Reject(Deny) reciv. data from WinSck

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Question Qs: Reject(Deny) reciv. data from WinSck

    Hi,
    how can i reject(Deny) received data from socket?
    Ex.:

    Private Sub WinSck1_DataArrival(ByVal bytesTotal As Long)
    WinSck1.GetData Dim_Data, vbString

    If bytesTotal > "300" Then
    REJECT(Deny) DATA ' How to do this?
    End If

    Very thanks
    Y.P.Y

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

    Re: Qs: Reject(Deny) reciv. data from WinSck

    As long as the socket is connected, data will be received and put into the Winsock buffer. You don't have to do anything with it though, just ignore it...

  3. #3
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Re: Qs: Reject(Deny) reciv. data from WinSck

    DigiRev is right, you will always need to 'accept' the data. In fact, it's already been 'accepted' by the time you get the data received event. If you want to ignore data, all you can do is take it out of the buffer and not use it.
    Don't pay attention to this signature, it's contradictory.

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