Created
August 31, 2014 13:23
-
-
Save champierre/b80c44e7820bb84d0a13 to your computer and use it in GitHub Desktop.
connect to scratch
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
# TCPSocket を使うため socket ライブラリを読み込みます | |
require "socket" | |
# localhost の TCP 番号 42001 番に接続します | |
socket = TCPSocket.open("localhost", 42001) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment