jtux
Class UNetwork.s_sockaddr_in

java.lang.Object
  |
  +--jtux.UNetwork.s_sockaddr
        |
        +--jtux.UNetwork.s_sockaddr_in
Enclosing class:
UNetwork

public static class UNetwork.s_sockaddr_in
extends UNetwork.s_sockaddr

Java version of C struct sockaddr_in.

Click here for Posix/SUS C API.


Field Summary
 UNetwork.s_in_addr sin_addr
          IPv4 address
 int sin_family
          AF_INET
 short sin_port
          port number (uint16_t)
 
Fields inherited from class jtux.UNetwork.s_sockaddr
sa_family
 
Constructor Summary
UNetwork.s_sockaddr_in()
           
 
Method Summary
 int get_family()
          Jtux only; non-standard
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sin_family

public int sin_family
AF_INET


sin_port

public short sin_port
port number (uint16_t)


sin_addr

public UNetwork.s_in_addr sin_addr
IPv4 address

Constructor Detail

UNetwork.s_sockaddr_in

public UNetwork.s_sockaddr_in()
Method Detail

get_family

public int get_family()
Description copied from class: UNetwork.s_sockaddr
Jtux only; non-standard

Overrides:
get_family in class UNetwork.s_sockaddr

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object