-
-
Save genericpenguin/aab72b5ae328d2c0585d1178999ac845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "socket" | |
module BSAF | |
class Player | |
property conn | |
@ip_address : Socket::IPAddress | |
def initialize(@conn : TCPSocket, @ch : Channel(String)) | |
@ip_address = @conn.remote_address | |
end | |
def send(msg : String) | |
@ch.send(msg) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment