I wrote a socket program in Java. Both server and client can send / receive data to each other. But I found that if the client sends data to the server using TCP, then internally TCP sends an acknowledgment to the client after the server receives the data. I want to detect or process this confirmation. How can I read or write data to TCP so that I can process TCP acknowledgment. Thank.
This is simply not possible, even if you programmed in C directly against the native OS API. One of the points of the socket API is that it abstracts this for you.
TCP Java . , Java, , , .
. .
, TCP, . , , , , , TCP . @Eric, .
, -, . , , . , , , , ? ?
, NIO code, . , .
.
API ACK .
. , , . , , , , .
Java, API Java , TCP.
, IP-, TCP. DLPI - API ,
http://www.opengroup.org/onlinepubs/9638599/chap1.htm
, Java- . JNI.
Source: https://habr.com/ru/post/1749019/More articles:Where are the objects saved if you run the GAE project in design mode? - java.NET 4.0 is slower than earlier versions, is that true? - c #Can I use facebook-connect as my user authentication? - authenticationCan we have a bean with components in a composite component of JSF2? - javaVisual Studio stores the absurd default value in the constructor file - .netHow can I get BibTeX to show months in a language other than English? - localization.htaccess file, IE does not work Firefox, Safari & Chrome works - internet-explorerreading files through $ _GET - securitygit output conflict results - gitVisual C # 2010 Express saves file descriptor after debugging - c #All Articles