Hello, i have a socket array:
Dim Sockets(20) As Socket
I would like to handle all the connected socket events with only one function, something like this:
Sub Sockets()_Connected(Connected As Boolean, i As Int)As Boolean
End Sub
EDIT: i tried this, but didnt work:
Sub Sockets_Connected(Connected As Boolean)As Boolean
Dim s As Socket
s = Sender
If s.Connected = True Then
ToastMessageShow("Connected",True)
End If
End Sub
any ideas?
Dim Sockets(20) As Socket
I would like to handle all the connected socket events with only one function, something like this:
Sub Sockets()_Connected(Connected As Boolean, i As Int)As Boolean
End Sub
EDIT: i tried this, but didnt work:
Sub Sockets_Connected(Connected As Boolean)As Boolean
Dim s As Socket
s = Sender
If s.Connected = True Then
ToastMessageShow("Connected",True)
End If
End Sub
any ideas?
Last edited: