I think it's not dependent by Java NIO API or by Sockets or by whatever API.
The message shipment and reception, I think, is controlled by the
underlaying stack, so by the TCP-IP.
This answer, in my poor opinion, is real when you use a SOCKET layer,
sure not real if you use DATAGRAM
layer and UDP. Do a control yourself if you want it ! :D
Best regards, Alex
[EMAIL PROTECTED] wrote:
Niklas Therning <[EMAIL PROTECTED]> a écrit :
[EMAIL PROTECTED] wrote:
Hi,
when I receive the 'messageSent' notification, what is its semantic?
Does it mean that the receiving end has received the message (from a
TCP point
of view, i.e. that all bytes have been received)?
Regards,
J-F
No, it only means that the message has been written to the
SocketChannel corresponding to the session. There's no guarantee that
the receiving side has received any of the message bytes yet.
/Niklas
Thanks Niklas.
Some clarifications:
- Is it possible to know when message has really been received?
- If not why? Is it due to TCP/IP, OS, sockets, use of non-blocking I/O ?
Thanks,
J-F