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 | nil)

read_nonblock

instance.read_nonblock(Integer maxlen) -> String?

readpartial

instance.readpartial(Integer maxlen) -> String

ready?

instance.ready?() -> bool

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 str) -> Integer
Tags: class