aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Server - Client exchanging Message Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Server - Client exchanging Message Objects" Watch "Server - Client exchanging Message Objects" New topic
Author

Server - Client exchanging Message Objects

Tomer Gal
Greenhorn

Joined: Dec 18, 2004
Posts: 24
Hi guys, I'm writing a certain Server Client application and I'd like them to exchange messages by exchanging the following Message object :

import java.io.*;

public class Message implements Serializable {
String code;
String string;

String getCode() {
return ( code);
}
String getString() {
return ( string);
}

Message ( String code, String string ) {
this.code = code;
this.string = string;
}

public String toString() {
return( code + " - " + string );
}

}



Now my problem is that sending such an object will be large in size ( more than 10kb ).
What is the way to do it without it taking more than it should ?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Server - Client exchanging Message Objects
 
Similar Threads
How must be chat app. with protocols ?
String size, which approach is faster?
Multiplexing an RMI connection using secure socket.
Passing an object back and forth between Client and Server!!!
Why do I get those exceptions? Please HELP....