|
-
Oct 10th, 2005, 11:34 AM
#1
Thread Starter
Fanatic Member
inconsistent connectionRequest
below is my server side winsock listen for connection...but that is happen inconsistent where some time accept connection , sometime couldnt get connection, why this happen??? it is the number port i use?
VB Code:
connect = 0
connectWinsock(0).LocalPort = 10000
connectWinsock(0).Listen
Private Sub connectWinsock_ConnectionRequest(Index As Integer, ByVal requestID As Long)
connect = connect + 1
Load connectWinsock(connect)
connectWinsock(connect).Close
connectWinsock(connect).Accept requestID
connectWinsock(connect).SendData ("Connected")
End Sub
Private Sub connectWinsock_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim state As String
connectWinsock(Index).GetData state
List3.AddItem (state & vbTab & vbTab & connectWinsock(Index).RemoteHostIP)
List1.AddItem (state & " just sign In!")
Call buddyDictionary.Add(state, connectWinsock(Index).RemoteHostIP)
End Sub
Last edited by kenny_oh; Oct 14th, 2005 at 05:51 AM.
-
Oct 12th, 2005, 04:15 AM
#2
New Member
Re: inconsistent connectionRequest
the same thing happends to me... I don't know why... if u can find the solution, please contact me.
PS: the port isn't the problem... i tried on many ports and all of them had the same problem...
this happends when more people try to connect at the same time... i think
Last edited by aneu; Oct 12th, 2005 at 04:20 AM.
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
|