Hi all,
Can anyone please help me on this query?
I have a server written in C and client in
Java. I need to establish a tcp/ip connection between them.
Right now I am able to set a socket connection from my Java client program and created an input stream which is continuously reading data from the server.
I need to read based on the server's protocol. The server has a message header and few other information as a C program. Basically all information are being sent as packets.
I know the number of bytes for each data structure.
Now how can I read that from my java client in the same order? Do I need to wrap the io stream object to accept bytes?
All the data in the server is like raw data. Can anyone guide me how to receive data from server?
Thanks