Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
multiplayer
main
ClientProxy
Write
Fight
Move
Moves
FightMine
FightObj
FightPl
FourInARow
Move
Moves
Game
Events
GameCreated
InvalidCommandEntered
JoinFailed
PlayerJoined
PlayerJoinedServer
PlayerLeft
PlayerMoved
PlayerWon
GameStatus
Info
GameList
GameStateInfo
Move
ServerEvent
ServerInfo
GameId
Mine
MultiplayerServer
MyProg
Player
PlayerId
RockPaperScissors
Move
Moves
Built with Crystal 1.9.2
2023-10-08 11:57:07 UTC
class
ClientProxy
ClientProxy
Reference
Object
Overview
A thread-safe proxy for client operations
Defined in:
server/client_proxy.cr
Constructors
.new
(socket : TCPSocket, username : String)
Instance Method Summary
#gets
#ip
: String
#player_id
#puts
(msg)
#username
: String
Constructor Detail
def self.
new
(socket : TCPSocket, username : String)
#
[
View source
]
Instance Method Detail
def
gets
#
[
View source
]
def
ip
: String
#
[
View source
]
def
player_id
#
[
View source
]
def
puts
(msg)
#
[
View source
]
def
username
: String
#
[
View source
]