Examples of write_any()


Examples of com.ericsson.otp.erlang.OtpOutputStream.write_any()

                                             new OtpErlangBinary(response_info),
                                             new OtpErlangBinary(response),
                                             new OtpErlangUInt(timeout),
                                             new OtpErlangBinary(trans_id),
                                             pid};
            return_sync.write_any(new OtpErlangTuple(tuple));
            send(return_sync);
        }
        catch (OtpErlangRangeException e)
        {
            e.printStackTrace(API.err);
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpOutputStream.write_any()

                                             new OtpErlangUInt(timeout),
                                             new OtpErlangBinary(trans_id),
                                             consume ?
                                             new OtpErlangAtom("true") :
                                             new OtpErlangAtom("false")};
            recv_async.write_any(new OtpErlangTuple(tuple));
            send(recv_async);
            return (Response) poll_request(null, false);
        }
        catch (OtpErlangRangeException e)
        {
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpOutputStream.write_any()

                }
                case MESSAGE_KEEPALIVE:
                {
                    OtpOutputStream keepalive = new OtpOutputStream();
                    keepalive.write(OtpExternal.versionTag);
                    keepalive.write_any(new OtpErlangAtom("keepalive"));
                    send(keepalive);
                    break;
                }
                default:
                    throw new MessageDecodingException();
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpOutputStream.write_any()

        }
        else if (external && ! this.initialization_complete)
        {
            OtpOutputStream polling = new OtpOutputStream();
            polling.write(OtpExternal.versionTag);
            polling.write_any(new OtpErlangAtom("polling"));
            send(polling);
            this.initialization_complete = true;
        }
        final int timeout_min = 10;
        Integer timeout_value = null;
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpOutputStream.write_any()

                    }
                    case MESSAGE_KEEPALIVE:
                    {
                        OtpOutputStream keepalive = new OtpOutputStream();
                        keepalive.write(OtpExternal.versionTag);
                        keepalive.write_any(new OtpErlangAtom("keepalive"));
                        send(keepalive);
                        if (buffer.hasRemaining())
                            continue;
                        break;
                    }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any int marshaling
        Integer any = new Integer( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Integer)aUM.read_any();
        if( any.intValue() != 1 )
            System.err.println( "error: int any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any long marshaling
        Long any = new Long( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Long)aUM.read_any();
        if( any.longValue() != 1 )
            System.err.println( "error: long any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any float marshaling
        Float any = new Float( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Float)aUM.read_any();
        if( any.intValue() != 1 )
            System.err.println( "error: float any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any double marshaling
        Double any = new Double( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Double)aUM.read_any();
        if( any.intValue() != 1 )
            System.err.println( "error: double any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any boolean marshaling
        Boolean any = new Boolean( true );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Boolean)aUM.read_any();
        if( !any.booleanValue() )
            System.err.println( "error: bool any marshal" );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.