|
-
Nov 14th, 2006, 05:48 PM
#1
Thread Starter
Member
Help Winsock Filter
hI ive made a proxy and i wanted to make a filter how do I it?
Code:
Public Sub Winsock1_DataArrival()
Dim Data As Object
Dim rByte As Byte
Winsock1.GetData(Data)
If Data = ?? Then 'Filter Here
Msgbox(??.ToString)
End If
End Sub
the code above doesnt work I need some help..
-
Nov 14th, 2006, 07:59 PM
#2
Re: Help Winsock Filter
What are you trying to filter...?
And why are you declaring Data as an object?
Code:
Private Sub Winsock1_DataArrival()
Dim bytData() As Byte, strData As String
winsock1.GetData bytData()
'Convert data to string.
strData = StrConv(bytData(), vbUnicode)
If LCase$(Left$(strData, 4)) = "post" Then
'Ignore HTTP post...
End If
End Sub
-
Nov 14th, 2006, 08:32 PM
#3
Thread Starter
Member
Re: Help Winsock Filter
this is written in VB.NEt..need .Net code
-
Nov 16th, 2006, 03:05 PM
#4
Re: Help Winsock Filter
the Winsock Control does not exist in vb.NET, you have to use the TCPClient and TCPListener calsses 
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
|