You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi i used BeetleX in my game server vb.net.but after sometimes server become very slow.when 50 client connected.
this is my code.whats wrong?
`Imports BeetleX
Imports BeetleX.EventArgs
Imports System
Friend Class servers
Inherits ServerHandlerBase
Public server As IServer
Sub server_run()
server = SocketFactory.CreateTcpServer(Of servers)()
server.Options.DefaultListen.Port = 8283
server.Options.SessionTimeOut = 300
server.Open()
End Sub
Public Overrides Sub Connected(ByVal server As IServer, ByVal e As ConnectedEventArgs)
main_form.Connected(server, e)
End Sub
Public Overrides Sub Disconnect(ByVal server As IServer, ByVal e As SessionEventArgs)
main_form.Disconnect(server, e)
End Sub
Public Overrides Sub SessionReceive(ByVal server As IServer, ByVal e As SessionReceiveEventArgs)
Dim pipeStream = e.Stream.ToPipeStream()
Dim name As String = Nothing
If pipeStream.TryReadLine(name) Then
main_form.SessionReceive(server, e, name)
End If
End Sub
End Class`
The text was updated successfully, but these errors were encountered:
hi i used BeetleX in my game server vb.net.but after sometimes server become very slow.when 50 client connected.
this is my code.whats wrong?
`Imports BeetleX
Imports BeetleX.EventArgs
Imports System
Friend Class servers
Inherits ServerHandlerBase
Public server As IServer
End Class`
The text was updated successfully, but these errors were encountered: