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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:50:01+00:00 2026-05-16T07:50:01+00:00

We are porting existing windows code to Linux. We are using ACE as abstraction

  • 0

We are porting existing windows code to Linux. We are using ACE as abstraction layer.
We are using windows named pipes for communicating with multiple clients and to perform overlapped operations .

What is the equivalent to this in linux. I have checked linux named pipes(FIFO), but they seem to support only one client and server and do not support overlapped IO.

Can you guide me regarding this.

  • 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-16T07:50:01+00:00Added an answer on May 16, 2026 at 7:50 am

    Unix sockets. Essentially,

    1. Call socket(PF_UNIX, SOCK_STREAM, 0). This returns a file descriptor or -1 on error.
    2. Use something like struct sockaddr_un addr; bzero(addr); addr.sun_len = sizeof(addr); addr.sun_family = PF_UNIX; strncpy(addr.sun_path, "/path/to/file", sizeof(addr.sun_path)-1); to create the socket address.
    3. Call bind(fd, &addr, sizeof(addr)).
    4. call listen(fd,backlog) to listen for connections. backlog is the number of un-accept()ed connections that can exist.
    5. Use accept() to accept connections from clients. This returns a new FD or -1 on error.
    6. Have clients create a similar socket and connect() to the address (I don’t think they have to bind).
    7. Remove the file /path/to/file when done (or just leave it there if you’re going to reuse it later).

    I’m not sure if SOCK_DGRAM is supported for Unix sockets (if so, it’s probably UDP-like).

    See the man pages for socket(2), bind(2), listen(2), accept(2), connect(2), unix(4), setsockopt(2).

    For “overlapped I/O”, see select(2). You can additionally enable non-blocking IO with fcntl(fd,F_SETFL,(int)(fcntl(fd,F_GETFL)|O_NONBLOCK)) (see fcntl(2)), this means read() and write() never block (which means write() can return short, so you need to look at the return value).

    I’m not quite sure how Windows named pipes represent multiple connections from multiple clients, but in UNIX, you get one file descriptor per connection (plus one for the “listening” socket).

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's an issue of scope: $showUR is set inside getUserInfo(),… May 16, 2026 at 11:36 am
  • Editorial Team
    Editorial Team added an answer because each time the element is being focused, an event… May 16, 2026 at 11:36 am
  • Editorial Team
    Editorial Team added an answer Hold on to the pointer or set the tag and… May 16, 2026 at 11:36 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm porting an existing system from Windows to Linux. The build is structured with
im porting c code to windows 32 bit using visual studio express now i
I'm examining the feasibility of porting an existing Windows MFC control to OS X/Carbon.
I am porting some C++ code from Unix to Linux (Red Hat). I have
Most of my recent programming has been on 32-bit Windows using C/C++/C#/VB6 . Lately,
I've stepped into a new position and am tasked with cleaning up pre-existing code.
I am porting an iphone game to windows phone 7. iphone works fairly similarly
I am porting a 2.7.7 scala code base over to 2.8 and was wondering
While porting some code from Delphi 7 to Delphi 2010 I was rewriting my
I am porting some Java code to C# and I ran across this: List<?>

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.