public static TransportAddress[] createTransportAddress(String host, int port) {
        // idl type is unsigned sort, so we need this trick
        short short_port = (port > 32767) ? (short) (port - 65536) : (short) port;


        TransportAddress ta = new TransportAddress(host, short_port);
        TransportAddress[] taList = new TransportAddress[1];
        taList[0] = ta;

        return taList;
    }
public static TransportAddress[] createTransportAddress(String host, int port) {
        
        short short_port = (port > 32767) ? (short) (port - 65536) : (short) port;


        TransportAddress ta = new TransportAddress(host, short_port);
        TransportAddress[] taList = new TransportAddress[1];
        taList[0] = ta;

        return taList;
    }
public static TransportAddress [ ] createTransportAddress ( String host , int port ) { // idl type is unsigned sort, so we need this trick short short_port = ( port > 32767 ) ? ( short ) ( port - 65536 ) : ( short ) port ; TransportAddress ta = new TransportAddress ( host , short_port ) ; TransportAddress [ ] taList = new TransportAddress [ 1 ] ; taList [ 0 ] = ta ; return taList ; }
<p>
Create a {@code TransportAddress[]} with a single {@code TransportAddress}.
</p>

@param host a {@code String} representing the address host.
@param port an {@code int} representing the address port.
@return the constructed {@code TransportAddress} array.
<p > Create a { @code TransportAddress [] } with a single { @code TransportAddress } . < / p >