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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:29:10+00:00 2026-05-14T21:29:10+00:00

Question 1 From SUSE man pages, I get the below details for socket connect

  • 0

Question 1

From SUSE man pages, I get the below details for socket connect options

If the initiating socket is connection-mode, then connect() shall attempt to establish a connection to the address specified by the address argument. If the connection cannot be established immediately and O_NONBLOCK is not set for the file descriptor for the socket, connect() shall block for up to an unspecified timeout interval until the connection is established. If the timeout interval expires before the connection is established, connect() shall fail and the connection attempt shall be aborted. If connect() is interrupted by a signal that is caught while blocked waiting to establish a connection, connect() shall fail and set errno to [EINTR], but the connection request shall not be aborted, and the connection shall be established asynchronously.

Question : Is the above contents valid for AIX OS (especially the connection time-out, timed wait …etc)?Because I do not see it in AIX man pages (5.1 and 5.3)

Question 2

I have a client socket whose attributes are
a. SO_RCVTIMEO ,SO_SNDTIMEO are set for 5 seconds.
b. AF_INET and SOCK_STREAM.
c. SO_LINGER with linger on and time is 5 seconds.
d. SO_REUSEADDR is set.
Note that the client socket is not O_NONBLOCK.

Question : Now since O_NONBLOCK is not set and SO_RCVTIMEO and SO_SNDTIMEO is set for 5 seconds, does it mean

a. connect in NON Blocking or Blocking?
b. If blocking, is it timed blocking or “infinite” time blocking?
c. If it is infinite, How do I establish a “connect” system call which is O_BLOCKING with timeout to t secs.

Sorry if the questions are be very naive.
Thanks in advance for your input.

  • 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-05-14T21:29:10+00:00Added an answer on May 14, 2026 at 9:29 pm

    All,
    Was able to finally find the answers to my questions after a through search and scan.
    I am posting it so that it helps others who may face the same problem.

    Question : Is the above contents valid for AIX OS (especially the connection time-out, timed wait …etc)?Because I do not see it in AIX man pages (5.1 and 5.3)

    Answer

    From lots of search and some help from AIX support engineer found out that the man pages confirm with POSIX standard and should be valid for both AIX and SUSE OS.

    Thus it proves that connect system API (O_BLOCK) can block in case of rare scenarios for unspecified time-out interval

    Question : Now since O_NONBLOCK is not set and SO_RCVTIMEO and SO_SNDTIMEO is set for 5 seconds, does it mean

    a. connect in NON Blocking or Blocking?
    b. If blocking, is it timed blocking or “infinite” time blocking?
    c. If it is infinite, How do I establish a “connect” system call which is O_BLOCKING with timeout to t secs.

    Answer

    a.If O_NONBLOCK is specified for SO_RCVTIMEO and/or SO_SNDTIMEO, then it is applicable for only those API’s, i.e recv and send API’s respectively.

    b. If connect API is used for blocking call, then yes, connect can block for unspecified amount of interval.

    Below link proved to be an excellent guide to understanding socket programming internals.

    “http://www.ibm.com/developerworks/aix/library/au-tcpsystemcalls/index.html“

    Thanks all for chipping in some time for my question.

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

Sidebar

Related Questions

The question from title doesn't need more details.
Below is a question from Kathy & Bert Bates SCJP 5 preparation CD. I
Another question from an app programmer who's trying the first time to get together
Question from Object-Oriented JavaScript book: Imagine Array() doesn't exist and the array literal notation
Question from an exam: Given a linked list with unknown size n , where
Question from beginner. Why code <%= System.DateTime.Now.ToLongDateString() %> is not executed in ASP.NET. Could
Question from the one interview. Please explain what does this C++ code mean: void
Full Question: From a child table linked to a row in its grandparent table
First question from me; I'm currently fixing a graphing service that uses XSLFO to
Just a simple question from a relative Java newbie: what is the difference between

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.