Tabnine Logo
Os.getsockname
Code IndexAdd Tabnine to your IDE (free)

How to use
getsockname
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.getsockname (Showing top 20 results out of 315)

origin: robovm/robovm

public SocketAddress getsockname(FileDescriptor fd) throws ErrnoException { return os.getsockname(fd); }
public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptByte(fd, level, option); }
origin: robovm/robovm

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: robovm/robovm

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: robovm/robovm

private void initLocalAddressAndPort() {
  SocketAddress sa;
  try {
    sa = Libcore.os.getsockname(fd);
  } catch (ErrnoException errnoException) {
    throw new AssertionError(errnoException);
  }
  InetSocketAddress isa = (InetSocketAddress) sa;
  localAddress = isa.getAddress();
  localPort = isa.getPort();
  if (socket != null) {
    socket.socketImpl().initLocalPort(localPort);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: ibinti/bugvm

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: com.bugvm/bugvm-rt

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: MobiVM/robovm

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: ibinti/bugvm

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: MobiVM/robovm

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.gluonhq/robovm-rt

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.bugvm/bugvm-rt

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.gluonhq/robovm-rt

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: FlexoVM/flexovm

public static InetAddress getSocketLocalAddress(FileDescriptor fd) throws SocketException {
  try {
    SocketAddress sa = Libcore.os.getsockname(fd);
    InetSocketAddress isa = (InetSocketAddress) sa;
    return isa.getAddress();
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: FlexoVM/flexovm

  public static int getSocketLocalPort(FileDescriptor fd) throws SocketException {
    try {
      SocketAddress sa = Libcore.os.getsockname(fd);
      InetSocketAddress isa = (InetSocketAddress) sa;
      return isa.getPort();
    } catch (ErrnoException errnoException) {
      throw errnoException.rethrowAsSocketException();
    }
  }
}
origin: MobiVM/robovm

private void initLocalAddressAndPort() {
  SocketAddress sa;
  try {
    sa = Libcore.os.getsockname(fd);
  } catch (ErrnoException errnoException) {
    throw new AssertionError(errnoException);
  }
  InetSocketAddress isa = (InetSocketAddress) sa;
  localAddress = isa.getAddress();
  localPort = isa.getPort();
  if (socket != null) {
    socket.socketImpl().initLocalPort(localPort);
  }
}
origin: ibinti/bugvm

private void initLocalAddressAndPort() {
  SocketAddress sa;
  try {
    sa = Libcore.os.getsockname(fd);
  } catch (ErrnoException errnoException) {
    throw new AssertionError(errnoException);
  }
  InetSocketAddress isa = (InetSocketAddress) sa;
  localAddress = isa.getAddress();
  localPort = isa.getPort();
  if (socket != null) {
    socket.socketImpl().initLocalPort(localPort);
  }
}
origin: com.bugvm/bugvm-rt

private void initLocalAddressAndPort() {
  SocketAddress sa;
  try {
    sa = Libcore.os.getsockname(fd);
  } catch (ErrnoException errnoException) {
    throw new AssertionError(errnoException);
  }
  InetSocketAddress isa = (InetSocketAddress) sa;
  localAddress = isa.getAddress();
  localPort = isa.getPort();
  if (socket != null) {
    socket.socketImpl().initLocalPort(localPort);
  }
}
origin: com.gluonhq/robovm-rt

private void initLocalAddressAndPort() {
  SocketAddress sa;
  try {
    sa = Libcore.os.getsockname(fd);
  } catch (ErrnoException errnoException) {
    throw new AssertionError(errnoException);
  }
  InetSocketAddress isa = (InetSocketAddress) sa;
  localAddress = isa.getAddress();
  localPort = isa.getPort();
  if (socket != null) {
    socket.socketImpl().initLocalPort(localPort);
  }
}
libcore.ioOsgetsockname

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now