Solved

How to select TCP and pipe in NT

Posted on 2001-08-06
1
250 Views
Last Modified: 2013-12-03
In Unix, we can select on both tcp and pipe using fd. But in NT, select will return an error message (WSAENOTSOCK) is I select on pipe. I need to check both a socket and a pipe which communicates between the main program and a console. I can't check one by one, because select will spend a certain time (timeout). How can I do it without any delay? Thanks a lot.
0
Comment
Question by:tlu00000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 6356123
This is usually doe using APCs (asynchronous procedure calls) - see http://www.mvps.org/win32/network/sockhim.html on how to do that with sockets, and a sample program for named pipes (though is tuses MFC) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpic/html/msdn_servrapp.asp
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question