Skip to content

Instantly share code, notes, and snippets.

@GOROman
Last active January 1, 2016 22:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GOROman/8213433 to your computer and use it in GitHub Desktop.
Save GOROman/8213433 to your computer and use it in GitHub Desktop.
スーパーハカー用プログラム
# スーパーハカー用プログラム
require 'socket'
# 開くポート
PORT = 5656 # 適当なポート
# TCPサーバーになっちゃう
TCPServer.open( PORT ) do |server|
loop do
# クライアントからの接続を待つ
s = server.accept
# 内容を画面に出しちゃう
while line = s.gets
puts line
end
s.close
end
end
# これで Unity の WWWの url を "http://localhost:5656/" とかにすれば通信を傍受できます
@GOROman
Copy link
Author

GOROman commented Jan 2, 2014

これで Unity の WWWの url を "http://localhost:5656/" とかにすれば通信を傍受できます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment