Package org.omg.CSIIOP

Examples of org.omg.CSIIOP.TransportAddress


/*     */
/*     */   public static TransportAddress[] createTransportAddress(String host, int port)
/*     */   {
/* 451 */     short short_port = port > 32767 ? (short)(port - 65536) : (short)port;
/*     */
/* 453 */     TransportAddress ta = new TransportAddress(host, short_port);
/* 454 */     TransportAddress[] taList = new TransportAddress[1];
/* 455 */     taList[0] = ta;
/*     */
/* 457 */     return taList;
/*     */   }
View Full Code Here


    {
        CDROutputStream out = new CDROutputStream();
        try
        {
            out.beginEncapsulatedArray();
            TLS_SEC_TRANS tls = new TLS_SEC_TRANS( targetSupports, targetRequires, new TransportAddress[] { new TransportAddress( "local", (short) (port & 0x0ffff) )} );
            TLS_SEC_TRANSHelper.write( out, tls );
            return new TaggedComponent( TAG_TLS_SEC_TRANS.value, out.getBufferCopy() );
        }
        finally
        {
View Full Code Here

     */
    public static TransportAddress[] createTransportAddress(String host, int port) {
        // idl type is unsighned 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;
    }
View Full Code Here

TOP

Related Classes of org.omg.CSIIOP.TransportAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.