Package org.nustaq.net

Examples of org.nustaq.net.TCPObjectSocket.writeObject()


        // send request
        HashMap toWrite = new HashMap();
        toWrite.put("Greetings form year ", 2014 );
        toWrite.put("Random ", Math.random() );
        socket.writeObject(toWrite);
        socket.flush();                             // <== important, else nothing happens !

        // await 2 responses
        System.out.println(socket.readObject());
        System.out.println(socket.readObject());
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.