P
puretec
I have the following problem:
a java application (client) should communicate with a sever, where the
communication objects are as follows:
public class Comm_1
{
long lSync;
long lLength;
CData_1 oData1;
}
.....
public class Comm_1
{
long lSync;
long lLength; // length [byte] of the object
CData_n oDatan;
}
1) How can I determine the length of an object in order to assign that value
to o.lLength (I know how to do this by hand);
2) Is the ObjectOutputStream ( linked to the socket.getOutputStream() ) the
stream which I should use for sending the objects?
sincerely
thomas
a java application (client) should communicate with a sever, where the
communication objects are as follows:
public class Comm_1
{
long lSync;
long lLength;
CData_1 oData1;
}
.....
public class Comm_1
{
long lSync;
long lLength; // length [byte] of the object
CData_n oDatan;
}
1) How can I determine the length of an object in order to assign that value
to o.lLength (I know how to do this by hand);
2) Is the ObjectOutputStream ( linked to the socket.getOutputStream() ) the
stream which I should use for sending the objects?
sincerely
thomas