public byte [ ] getData ( ) { if ( this . data == null ) { return new byte [ ] { } ; } if ( this . data . length == 0 ) { Family family = getSaFamily ( ) ; if ( family == Family . AF_INET6 ) { this . data = new byte [ Inet6Address . IPV6_ADDRESS_LENGTH ] ; } else { this . data = new byte [ Inet4Address . IPV4_ADDRESS_LENGTH ] ; } } byte [ ] data = new byte [ this . data . length ] ; System . arraycopy ( this . data , 0 , data , 0 , data . length ) ; return data ; }
Returns bytes address of SockAddr .