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 8805513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:53:13+00:00 2026-06-14T01:53:13+00:00

What does ssize_t read(int fd, void * data, size_t count); exactly do? In a

  • 0

What does ssize_t read(int fd, void * data, size_t count); exactly do?

In a lot of articles in the web is often written, that it tries to read from or the descriptor fd. What does that mean? “It tries” :/ And how is such a socket designed? Does the OS buffer the messages coming in? Or is a read a time critical operation? I mean is there the posibility that some packages get lost, if i dont “read” in time?

EDIT:

I wondered a while now why this is not blocking. Then I wondered why read(…) has other parameters than all functions I saw in code snippets. Finally I realized that it is read(…) not recv(…). Unlucky that it still worked nearly as i expected. And fnuny how our ascostaivie tohuhgts paly geams wtih us. (Don’t edit) I have to admit that the example german has more effect on the reader…

  • 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-14T01:53:15+00:00Added an answer on June 14, 2026 at 1:53 am

    Linux will buffer any data which arrives on a connected TCP socket, up to a few megabytes by default. You dont have to read at the exact same time the data arrives.

    netstat -tn will show Recv-Q and Send-Q for each connected socket, which is the number of bytes queued in each direction.

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

Sidebar

Related Questions

Okay, so apparently this works: void foo(size_t s) { int myArray[s]; // ... use
I have a Read generic function that does its job very well. It reads
Question says it all. Does anyone know if the following... size_t div(size_t value) {
Does the results of IntPtr.Size show the OS that the .NET app is running
What does exactly the star in size terms in WPF mean?
I'm trying to read a binary file that is in the following format: number
Slightly related to this question , but you don't really need to read that.
I have written a program that constantly reads from the Bluetooth via SPP and
I have a part of a code that does the following: It reads in
A buffer that holds binary chunks of data is supposed to be copied to

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.