Hi I hope you guys here can help me with my .Net project since i cant seem to get help at another forum for my project...

I'm looking to control the amount of data coming threw a Socket in my program...Simply i'm working on making a program too Control Port Flooding..and when a port gets Flooded it will Close Down that port and Open a New one Establishing a New Connection while attempting too keep the Prior Connection Alive by using a Ping..
This is just a bit of what i have but dosnt acomplish the Task I'm working on,Can someone Help me..Thxs..
[vbcode] Private Sub DataTimerHandler(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mDataTimer.Tick
If mState = eState.Connected Then
Dim bytes() As Byte
Dim length, readable As Integer
readable = mSocket.Available

If readable > 0 Then
ReDim bytes(readable - 1)
length = mSocket.Receive(bytes)
RaiseEvent DataArrival(bytes, length)
If mSocket.Poll(1, SelectMode.SelectRead) Then
RaiseEvent Disconnected()
End If
End If
End If
End Sub[/vbcode]