Mirage Engine
IOCP - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: IOCP (/showthread.php?tid=1820)



IOCP - Ramsey - 08-06-2008

viewtopic.php?f=69&t=895&st=0&sk=t&sd=a

Quote:Function IsConnected(ByVal Index As Long) As Boolean
IsConnected = False

If Index = 0 Then Exit Function

If GameServer Is Nothing Then Exit Function

If Not GameServer.Sockets(Index).Socket Is Nothing Then
IsConnected = True
End If
End Function

Says:

Object doesn't support this property or method.


Re: IOCP - Ramsey - 09-06-2008

Well I thought of taking a new approach.
viewtopic.php?f=69&t=1468

RTE 9
Code:
Public Property Get Item(vntIndexKey As Variant) As clsSocket
    Set Item = mCol(vntIndexKey)
End Property

Highlights: Set Item = mCol(vntIndexKey)
My MAX_PLAYERS is 500 and the vntIndexKey always stops at 491 and anything above that. If I set the max to 300 then it stops at 291. Wtf?

Any suggestions?