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

  • Home
  • SEARCH
  • 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 7947405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:25:21+00:00 2026-06-04T01:25:21+00:00

So I am making this tcp program which simply sends and receives information between

  • 0

So I am making this tcp program which simply sends and receives information between a client and a server.

My setup works as follows:

1)Server starts listening

2)Client sends “hello” command as well as a username/password

3)Server sends either “correctpass” or “wrongpass”

4)Client starts sending massive amounts of data in 50kb intervals

5)Server receives and stores this data as it comes

My question is: Is there something I should do to make sure that client doesn’t send data when the server isn’t listening? Forexample, should there be a command sent from server saying that it successfully got the data? I am just wondering this because I can’t have the data come not in order.

I am receiving via tcp and I understand that TCP should send all the data to the server, but my problem is that the server might not be reading at the time that it is sent to it.

My other question is: Is TCP a good protocol for sending lots of small data (adding up to alot) through the internet? Is this how dropbox and other sync utilities communicate with their servers?

Edit:
I am currently using C# and networkstream to communicate

Thanks,

Rohit

  • 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-04T01:25:23+00:00Added an answer on June 4, 2026 at 1:25 am

    First think that you need to do it’s to read about data communications protocols and standarts thats already invented.
    Includes OSI/ISO http://en.wikipedia.org/wiki/OSI_model
    That help you to understand levels of tcp and udp, http, rest and etc.
    Learn about technologies designed for interaction and communication like WCF.
    But dont forget to play with your custom protocol it gives you experiences and representation how data comunications work and why and when use different protocols and technologies.

    To work around data transfer collision you can use reqest/answer organization of communication.

    But with WCF service you can do data transfer easyly. Without a lot of coding and misatkes.

    Tcp is good to send data and be enshured from data coruption.

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

Sidebar

Related Questions

im making file transfer (Server-Client) TCP i've already looked for same questions like this
I'm making a TCP Client in Applet mode and I get this strange error...
We have a .NET application which, on a certain server, keeps making various TCP
I am designing a client server socket program using TCP/IP. The server listens on
This is similar to my last question. I'm making a simple tcp/ip chat program
I'm making a client program in C that has to deal with this situation:
I was making this very simple lex program (just an introductory program). But on
I'm making this little program because I was bored and I ran across this
i have a tcp server that, when a client connects, it makes a new
I want to make connection between two parts of my program which can be

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.