protected InetSocketAddress getSocketAddress() throws BadDescriptorException { Channel channel = getOpenChannel(); return (InetSocketAddress)SocketType.forChannel(channel).getLocalSocketAddress(channel); }
protected SocketAddress getSocketAddress() { Channel channel = getOpenChannel(); return SocketType.forChannel(channel).getLocalSocketAddress(channel); }
protected InetSocketAddress getRemoteSocket() throws BadDescriptorException { Channel channel = getOpenChannel(); return (InetSocketAddress)SocketType.forChannel(channel).getRemoteSocketAddress(channel); }
protected InetSocketAddress getSocketAddress() throws BadDescriptorException { Channel channel = getOpenChannel(); return (InetSocketAddress)SocketType.forChannel(channel).getLocalSocketAddress(channel); }
protected InetSocketAddress getRemoteSocket() throws BadDescriptorException { Channel channel = getOpenChannel(); return (InetSocketAddress)SocketType.forChannel(channel).getRemoteSocketAddress(channel); }
protected SocketAddress getSocketAddress() { Channel channel = getOpenChannel(); return SocketType.forChannel(channel).getLocalSocketAddress(channel); }
private void joinMulticastGroup(IRubyObject val) throws IOException, BadDescriptorException { Channel socketChannel = getOpenChannel(); if(socketChannel instanceof DatagramChannel) { if (multicastStateManager == null) { multicastStateManager = new MulticastStateManager(); } if (val instanceof RubyString) { byte [] ipaddr_buf = val.convertToString().getBytes(); multicastStateManager.addMembership(ipaddr_buf); } } }
private void joinMulticastGroup(IRubyObject val) throws IOException, BadDescriptorException { Channel socketChannel = getOpenChannel(); if(socketChannel instanceof DatagramChannel) { if (multicastStateManager == null) { multicastStateManager = new MulticastStateManager(); } if (val instanceof RubyString) { byte [] ipaddr_buf = val.convertToString().getBytes(); multicastStateManager.addMembership(ipaddr_buf); } } }
protected SocketAddress getRemoteSocket() { Channel channel = getOpenChannel(); SocketAddress address = SocketType.forChannel(channel).getRemoteSocketAddress(channel); if (address == null) throw getRuntime().newErrnoENOTCONNError(); return address; }
private void joinMulticastGroup(IRubyObject val) throws IOException, BadDescriptorException { Channel socketChannel = getOpenChannel(); if(socketChannel instanceof DatagramChannel) { if (multicastStateManager == null) { multicastStateManager = new MulticastStateManager(); } if (val instanceof RubyString) { byte [] ipaddr_buf = val.convertToString().getBytes(); multicastStateManager.addMembership(ipaddr_buf); } } }
private void joinMulticastGroup(IRubyObject val) throws IOException, BadDescriptorException { Channel socketChannel = getOpenChannel(); if(socketChannel instanceof DatagramChannel) { if (multicastStateManager == null) { multicastStateManager = new MulticastStateManager(); } if (val instanceof RubyString) { byte [] ipaddr_buf = val.convertToString().getBytes(); multicastStateManager.addMembership(ipaddr_buf); } } }
protected SocketAddress getRemoteSocket() { Channel channel = getOpenChannel(); SocketAddress address = SocketType.forChannel(channel).getRemoteSocketAddress(channel); if (address == null) throw getRuntime().newErrnoENOTCONNError(); return address; }
channel = getOpenChannel(); try { SocketType.forChannel(channel).shutdownInput(channel); channel = getOpenChannel(); try { SocketType.forChannel(channel).shutdownOutput(channel);
channel = getOpenChannel(); try { SocketType.forChannel(channel).shutdownInput(channel); channel = getOpenChannel(); try { SocketType.forChannel(channel).shutdownOutput(channel);
Channel channel = getOpenChannel();
Channel channel = getOpenChannel();
Channel channel = getOpenChannel();
Channel channel = getOpenChannel();
Channel channel = getOpenChannel(); SocketType socketType = SocketType.forChannel(channel);
Channel channel = getOpenChannel(); SocketType socketType = SocketType.forChannel(channel);