class TCPServer

TCPServerクラス ↑

TCP/IPのストリーム型ソケットのサーバクラス

Public Class Methods

new(host = nil, service) click to toggle source
コンストラクタ
TCPServerオブジェクトを生成する。

Args ↑

host 接続先IPアドレス ↑

service 接続先ポート ↑

Return ↑

生成されたTCPServerオブジェクト

Exception ↑

ArgumentError パラメータエラー ↑

# File socket.rb, line 73
def initialize(host = nil, service)
end

Public Instance Methods

accept() click to toggle source
クライアント接続待ち
クライアントからの接続要求を受け付け、接続したTCPSocketのインスタンスを返す。

Args ↑

Return ↑

クライアントと接続したTCPSocketオブジェクト

Exception ↑

IOError 通信エラー ↑

# File socket.rb, line 83
def accept
  nil
end