Im a fresher, i dnt have experience in java
Currently im handling one project wchich is device based implementing in java(USING TCP/IP socket).
Simultaneously i wan't send commands to the device.
But while implementing concept with nonblocking socket(SocketChannel) im not receiving complete packets from that device or sometimes receiving but it returns proper values with some extra characters.
I don't know how to handle buffering for socket which im receiving from device (the deivce can return any no. of bytes at a time).
But device working system like this if i will send command to device it sends complete information.
How to implement properly can anyone help me.....
Currently im handling one project wchich is device based implementing in java(USING TCP/IP socket).
Simultaneously i wan't send commands to the device.
But while implementing concept with nonblocking socket(SocketChannel) im not receiving complete packets from that device or sometimes receiving but it returns proper values with some extra characters.
I don't know how to handle buffering for socket which im receiving from device (the deivce can return any no. of bytes at a time).
But device working system like this if i will send command to device it sends complete information.
How to implement properly can anyone help me.....