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 ;)
Printable View
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 ;)
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...
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.