|
-
Jun 5th, 2007, 05:29 AM
#1
Thread Starter
Addicted Member
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
-
Jun 5th, 2007, 05:34 AM
#2
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...
-
Jun 9th, 2007, 11:02 AM
#3
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|