How to verify that a byte was sent successfully using TCP?

I have a problem with network programming. I use TCP protocol for communication between server and client. My code works, but I still can’t find out that the data was sent successfully or if it failed. I have the following questions:

  • How to verify that bytes were sent using a TCP socket successfully or not?
  • How does acknowledgment (ACK) work in TCP protocoll?
  • How to secure communications using socket programming?

You can explain in C #, Java or PHP.

+3
source share
2 answers

, TCP/IP, , SO. Wikipedia, , , . TCP-.

, TCP, , , . , TCP , . "", TCP . . TCP , , .

TCP, ACK NACK . .

, , , . .

, , TCP , W Richard Stevens's TCP/IP Illustrated. , , ( ).

+2
  • , , , , . .

  • ACK (nowledgement): . , , , . , , (, ). , , root/administrator. , this; TCP RFC .

  • SSL , , , , . PHP- OpenSSL . HTTPS, , .

, , , " Google" . , , , .

PS: , C, - , , (, , ). : http://www.tenouk.com/Module43a.html

+1

All Articles