module ServerEngine::SocketManagerUnix::ClientModule

Private Instance Methods

connect_peer(path) click to toggle source
# File lib/serverengine/socket_manager_unix.rb, line 26
def connect_peer(path)
  return UNIXSocket.new(path)
end
recv(family, proto, peer, sent) click to toggle source
# File lib/serverengine/socket_manager_unix.rb, line 30
def recv(family, proto, peer, sent)
  server_class = case proto
                 when :tcp then TCPServer
                 when :udp then UDPSocket
                 else
                   raise ArgumentError, "invalid protocol: #{proto}"
                 end
  peer.recv_io(server_class)
end
recv_tcp(family, peer, sent) click to toggle source
# File lib/serverengine/socket_manager_unix.rb, line 40
def recv_tcp(family, peer, sent)
  recv(family, :tcp, peer, sent)
end
recv_udp(family, peer, sent) click to toggle source
# File lib/serverengine/socket_manager_unix.rb, line 44
def recv_udp(family, peer, sent)
  recv(family, :udp, peer, sent)
end