BasicSocket class of PicoRuby

Instance methods

close

instance.close() -> void

closed?

instance.closed?() -> bool

eof?

instance.eof?() -> bool

gets

instance.gets(?String sep) -> String?

local_address

instance.local_address() -> nil

peeraddr

instance.peeraddr() -> Array[String | Integer]

print

instance.print(*untyped args) -> nil

puts

instance.puts(*untyped args) -> nil

read

instance.read(Integer maxlen) -> String?

recv

instance.recv(Integer maxlen, ?Integer flags) -> String?

remote_address

instance.remote_address() -> String

remote_host

instance.remote_host() -> String

remote_port

instance.remote_port() -> Integer

send

instance.send(String data, Integer flags) -> Integer

write

instance.write(String data) -> Integer
Tags: class