R
rambo88
Hello.
typedef struct
{
int a, int b;
char text [10];
}IDL;
IDL msg;
in a linux c-programming, I define c-structure and send it to another
machine via socket inteface.
for example send ( socketFd , &msg, sizeof ( msg ) ) => recv ( socketfd,
&msg , sizeof ( msg );
here , I like to know how to define c-structre type in java , and how to
send to another machine.
1)
class
{
int a , int b;
String text;
} JavaIDL
JavaIDL jds; => is it possible ?
2) how to send it to another machine with whole class-data type ==> is it
possible way in java language?
send ( jds , sizeof (jds ) ==> recv ( jds, sizeof ( jds ) ;
thank you in advance.
Have a day.
typedef struct
{
int a, int b;
char text [10];
}IDL;
IDL msg;
in a linux c-programming, I define c-structure and send it to another
machine via socket inteface.
for example send ( socketFd , &msg, sizeof ( msg ) ) => recv ( socketfd,
&msg , sizeof ( msg );
here , I like to know how to define c-structre type in java , and how to
send to another machine.
1)
class
{
int a , int b;
String text;
} JavaIDL
JavaIDL jds; => is it possible ?
2) how to send it to another machine with whole class-data type ==> is it
possible way in java language?
send ( jds , sizeof (jds ) ==> recv ( jds, sizeof ( jds ) ;
thank you in advance.
Have a day.