473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Completion port & winsock problem.

Hi,

Introduction:
*************************
I am developing communication infrastructure for a streaming video server,
to achieve optimal performance I use IO Completion ports & a thread pool in
combination with winsock MsAPI ( e.g. ConnectEx, AcceptEx, … ), sending data
through sockets is done with Read/WriteFile.

The problem:
*************************
Upon IO Completion of any kind ( e.g. Socket Connection completion , socket
data reception , … ) I get double completion notifications, in other words:
GetQueuedCompletionStatus returns twice for the same IO operation…

I guess I am not the first encountered this problem…
Does someone have a clue what may cause this problem?

Any pointer, comment or remark would be appreciated.

Naddav
http://www.sophin.com
Nov 17 '05 #1
1 1682
"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
The problem:
*************************
Upon IO Completion of any kind ( e.g. Socket Connection completion ,
socket
data reception , . ) I get double completion notifications, in other
words:
GetQueuedCompletionStatus returns twice for the same IO operation.

I guess I am not the first encountered this problem.
I don't know why you think that.
Does someone have a clue what may cause this problem?

Any pointer, comment or remark would be appreciated.


You will probably need to post the smallest snippet of code that you can get
to exhibit the problem in a more appropriate group, e.g.

microsoft.public.win32.programmer.kernel

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
5
by: Keith | last post by:
I am trying to write a simple FTP client, but I am having trouble with the PORT Command. Does anyone know how to Get an IP Address and port number to establish a data port for the server to...
0
by: andy | last post by:
My Winsock app works fine when compiled using VC++ 6 compiler, however I get runtime exceptions under heavy load if I recompile using Visual Studio .NET, the exceptions point to "GetProcessHeap()"...
8
by: MLH | last post by:
I wrote a letter to NIST in Boulder, Colorado asking how to glean time/date from their servers from inside an Access 97 app and VBA. Their reply is shown below. Trouble is, I do not know how to do...
0
by: Nadav | last post by:
Hi, Usage of FileStream ( and other stream related objects ) internally use an IO Completion port, Now, Taking that in mind, does all of the stream object of a certain process use a single IO...
2
by: William GS | last post by:
Hello, my app sends and receives messages over a local area network using WinSock, so I need a Port, How can I get an unused port? It must work with VC6 and Win98/ME too. Thanks in advance,...
0
by: ckp21082 | last post by:
I want to develop an application that constantly read Com port Read data comming from COM Port and transfer that data to another computer using Winsock so Hyper Terminal can read it. I am able to...
11
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
0
by: Julien Ghaye | last post by:
Hi everyone, Actually, I'm coding some kind of a http client. Here is my problem. When I create and destroy many sockets (one after another) without specifying the local port to bind, It seems...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.