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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:31:44+00:00 2026-05-20T08:31:44+00:00

I am implementing in C on Windows : A channel of communication between a

  • 0

I am implementing in C on Windows : A channel of communication between a sender and a receiver.

The channel has to receive packages from sender, transfer them to the receiver and then back from receiver to the sender.

The Channel connects to sender (maybe multiple senders) on port 1 and connects to the receiver on port 2

What is a good way of doing it? Both ports 1 and 2 have to be able to send and receive. how to I use select in such situation?

I want to use a single threaded environment.

  • 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-20T08:31:45+00:00Added an answer on May 20, 2026 at 8:31 am

    Not sure either about your exact question, but indeed TCP sockets are bidirectional.
    You can put the same file descriptor in both the read and write (and except) FD_SETs in the same select call.

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

Sidebar

Related Questions

I'm implementing a email newsletter sender service using .NET and Windows Server technologies. Are
I am implementing a Windows-based web server handling multiple specific HTTP requests from clients
I'm implementing a custom Button class that inherits from System.Windows.Forms.Button , I do a
We're implementing a hosted Windows SharePoint Services 3.0 system and I need to limit
I'm implementing a ioctl in a Windows CE device driver that takes a pointer
I'm implementing a process elevation helper for Windows. It's a program that will run
I am implementing a Microsoft Speech Server application built on windows workflow foundation. The
I'm well into implementing a REST service (on a Windows CE platform if that
What's the best way of implementing a multiple choice option in Windows Forms? I
What is the best approach to implementing authorisation/authentication for a Windows Forms app talking

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.