Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7813561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:54:50+00:00 2026-06-02T04:54:50+00:00

I’m having a problem doing network programming. I’m using the TCP protocol to communicate

  • 0

I’m having a problem doing network programming. I’m using the TCP protocol to communicate between server and client. My code is working, but I as yet can’t detect that the data is successfully sent or if it failed. I have the following questions:

  1. How does one check that the bytes have been sent with socket TCP successfully or not?
  2. How acknowledgment (ACK) is work in TCP protocoll ?
  3. How does one do secure communication using socket programing?

You can explain in C#, Java or PHP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:54:51+00:00Added an answer on June 2, 2026 at 4:54 am

    An explanation of how TCP/IP works is best left as a research exercise, rather than an ad hoc SO question. While the usual first stop might be Wikipedia, that probably doesn’t give you a good introduction from a conceptual level. In the comments there is also a link to a TCP tutorial.

    However in essence, TCP is, as the name says, a transmission control protocol that provides a mechanism for the reliable delivery of a byte stream. Given a stream of bytes, TCP basically ensures that the receiver receives the bytes in the correct order. If a byte in the middle of a stream got “lost”, then TCP can detect this and will arrange its re-transmission. All of this is transparent to the receiving party. The magic of TCP is that the receiving party just reads from the socket, and the data appears intact and in the correct order.

    When you utilise a TCP socket, you don’t deal with ACKs and NACKs and retransmissions. All of that is transparent to your application.

    Now, you can detect that the other end has gone away, but you can’t know that the other end definitely did or did not receive your message. This is the Two General’s Problem.

    But really, if you’re interested in how TCP works read W Richard Stevens’ TCP/IP Illustrated. Not trying to palm you off, but to understand it, you really do need to go away and read about it (either online or on dead trees).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.