public Addrinfo(Ruby runtime, RubyClass cls, InetAddress inetAddress, int port) { super(runtime, cls); this.socketAddress = new InetSocketAddress(inetAddress, port); setSockAndProtocol(Sock.SOCK_STREAM); }
public Addrinfo(Ruby runtime, RubyClass cls, InetAddress inetAddress, int port) { super(runtime, cls); this.socketAddress = new InetSocketAddress(inetAddress, port); setSockAndProtocol(Sock.SOCK_STREAM); }
private void setSockAndProtocol(IRubyObject sock) { setSockAndProtocol(sock == null ? null : SocketUtils.sockFromArg(sock)); }
private void setSockAndProtocol(IRubyObject sock) { setSockAndProtocol(sock == null ? null : SocketUtils.sockFromArg(sock)); }
public Addrinfo(Ruby runtime, RubyClass cls, InetAddress inetAddress, int port, Sock sock) { super(runtime, cls); this.socketAddress = new InetSocketAddress(inetAddress, port); this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); this.socketType = SocketType.SOCKET; setSockAndProtocol(sock); }
public Addrinfo(Ruby runtime, RubyClass cls, InetAddress inetAddress, int port, Sock sock) { super(runtime, cls); this.socketAddress = new InetSocketAddress(inetAddress, port); this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); this.socketType = SocketType.SOCKET; setSockAndProtocol(sock); }
public Addrinfo(Ruby runtime, RubyClass cls, SocketAddress socketAddress) { super(runtime, cls); this.socketAddress = socketAddress; this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); setSockAndProtocol(Sock.SOCK_STREAM); }
public Addrinfo(Ruby runtime, RubyClass cls, SocketAddress socketAddress) { super(runtime, cls); this.socketAddress = socketAddress; this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); setSockAndProtocol(Sock.SOCK_STREAM); }
public Addrinfo(Ruby runtime, RubyClass cls, SocketAddress socketAddress, Sock sock, SocketType socketType) { super(runtime, cls); this.socketAddress = socketAddress; this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); this.socketType = socketType; setSockAndProtocol(sock); }
public Addrinfo(Ruby runtime, RubyClass cls, SocketAddress socketAddress, Sock sock, SocketType socketType) { super(runtime, cls); this.socketAddress = socketAddress; this.pfamily = ProtocolFamily.valueOf(getAddressFamily().intValue()); this.socketType = socketType; setSockAndProtocol(sock); }
setSockAndProtocol(sock); } catch (IOException ioe) { ioe.printStackTrace();
setSockAndProtocol(sock); } catch (IOException ioe) { ioe.printStackTrace();