types.bas
来自「Winsock的多客户服务器源代码,比较好的WINSOCK应用示例!」· BAS 代码 · 共 24 行
BAS
24 行
Attribute VB_Name = "types"
'this is the data-type for each client.
'it keeps a record of everybody connected
'and also stores data on what socket they
'are using, customize for your needs.
Type client_type
'socket they are using, 0 if not used
socket As Integer
'time they connected
connected_at As String
'remember when his last command was
idle_since As String
End Type
'this creates an array for each possible client
Public client(server_max_clients) As client_type
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?