import java.net.SocketAddress;
import java.net.StandardProtocolFamily;
import java.net.UnixDomainSocketAddress;
import java.net.SocketAddress;
import java.net.StandardProtocolFamily;
import java.net.UnixDomainSocketAddress;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
} catch (IOException e) {
logger.error("Error occurred while reading line", e);
return null;
} catch (IOException e) {
logger.error("Error occurred while reading line", e);
return null;
UnixDomainPrincipal principal = null;
try {
principal = channel.getOption(ExtendedSocketOptions.SO_PEERCRED);
} catch (UnsupportedOperationException | NoClassDefFoundError ignored) {
}
UnixDomainPrincipal principal = null;
try {
principal = channel.getOption(ExtendedSocketOptions.SO_PEERCRED);
} catch (UnsupportedOperationException | NoClassDefFoundError ignored) {
}
? ServerSocketChannel.open(StandardProtocolFamily.UNIX)
: ServerSocketChannel.open();
serverChannel.bind(address);
? ServerSocketChannel.open(StandardProtocolFamily.UNIX)
: ServerSocketChannel.open();
serverChannel.bind(address);
postBind(address);
} catch (IOException e) {
throw new IOErrorException("Failed to bind socket " + address + ": " + e.getMessage(), e);
postBind(address);
} catch (IOException e) {
throw new IOErrorException("Failed to bind socket " + address + ": " + e.getMessage(), e);