Questions tagged [iocp]

An I/O Completion Port (IOCP) provides a way to execute asynchronous I/O operations efficiently on Windows.

An I/O Completion Port (IOCP) provides a way to execute asynchronous I/O operations efficiently on Windows.

It can be used by the native CreateIoCompletionPort() function. It's also used internally by some of the types that use the Begin*-End* asynchronous programming model in .Net.

350 questions
0
votes
1 answer

IOCP thread processing

I am making an IOCP server in C#, invoking win apis. I have 1 accept thread connection and worker threads depending of CPU cores. My problem is, i am getting 2 threads trying to process the same data at the same time, based on the following snippets…
ffenix
  • 543
  • 1
  • 5
  • 22
0
votes
1 answer

Where can I get the codes about iocp in source code of asio?

I wanted to learn how to use iocp perfectly, but I couldn't find the function CreateIoCompletionPort. I explored all the files of asio, and only found few .cpp files! How can/should I explore the source code?
KnowNothing
  • 121
  • 1
  • 11
0
votes
0 answers

Setting IO On A Socket

I have a C++ program where I connect to my server with a socket and I need to set the overlapped for the socket. Doing the following does not work: Function int set_wsa_proxy_client ( proxy_client *node ) { WSABUF wbuf; DWORD bytes,…
User
  • 659
  • 2
  • 12
  • 29
0
votes
2 answers

IOCP multiple socket completionports in same container

For the past couple of days I have been thinking about how to solve one of my problems I am facing, and I have tried to research the topic but don't really know what I can do. I have 2 sockets in the same struct that both have the same…
User
  • 659
  • 2
  • 12
  • 29
0
votes
1 answer

IOCP and overwritten buffer

Well i make a IOCP for handling client connections with the following details: - Threads = (CPU cores * 2) - Assigning an completion port to each socket - Accessing the socket context by Client Index or overlapped struct (either way is the…
ffenix
  • 543
  • 1
  • 5
  • 22
0
votes
1 answer

How to structure worker thread logic for IOCP

I'm creating a client program that communicates with a device connected to my PC via LAN. A typical communication between my program and the device is as follows: Program -> Device 1616000D 08 02 00 00 00 21 11 A1 00 01 22 08 00 // Sender sends…
jpen
  • 2,129
  • 5
  • 32
  • 56
0
votes
1 answer

Getting client data fast

Is there a better method (using Windows) for getting a moderate amount of data from many clients quickly without using select (but I am willing to use select if need be). IOCP is no good to me and ippoll is for Linux. This has to be compatible…
Confident
  • 321
  • 4
  • 17
0
votes
1 answer

Connecting to IOCP server in Java (Android)

I'd like to make an Online Game with Android. I'm planning to make Server with IOCP model via C++. This should work fine, the problem is the client. IOCP client example in C++ uses WSASyncselect or WSAEventSelect. I couldn't find any Java examples…
0
votes
1 answer

IOCP: notifications without bytes copy

I have IOCP application that stores a 64kb buffer per socket context. It uses lot of RAM, while handling thousands of sockets. Instead of this i want to switch to model where I have a 64kb buffer per iocp-thread context (like i can do it in epoll…
user1266334
  • 153
  • 2
  • 12
0
votes
1 answer

Windows network IOCP scalability over multiple cores

The behavior is the following: e.g. one server worker with 200 sockets handles 100K echoes per second. Starting another server worker on the same port (with the same number of sockets or double less for each worker, it does not matter), immediately…
a_m
  • 369
  • 1
  • 3
  • 12
-1
votes
0 answers

How network I/O works in virtual machine (aws, azure. and so on..)

Currently working on AWS ec2, question about network I/O in this situation. Generally, when I/O occurred, they try to copy data from network layer to application layer. So, AWS ec2 is a kind of vm, they was allocated virtual ip from real machine…
mimic
  • 85
  • 1
  • 7
-1
votes
1 answer

I/O Completion ports C++ And Threadpools

I'm trying to understand which is true, i read in multiple sources that IOCPs can be used to implement a threadpool, i'm using multiple IOCPs each in it's thread to do interprocess communication and i'm trying to reimplement my code to use just one…
Bob Maza
  • 59
  • 8
-1
votes
1 answer

intensive data sending breaks IOCP events

I use Windows IOCP in my app for few years without any issues (permanent TCP communication with small messages), but recently I had to send very big application state (25k of messages, about 12Mb all together). I use 0x2000-bytes buffers, combined…
yudjin
  • 349
  • 5
  • 14
-1
votes
1 answer

What if server didn't receive fd_close

I have a high performance client server system programmed from the scratch. i am still improving my system. the server using io overlapping to handle connections. the server correctly handles disconnections and resource deallocations. at the client…
Hara
  • 35
  • 4
-1
votes
2 answers

iocp socket close_wait status, how to fix it?

It is not easy to write a iocp console server,socket pool and thread pool works well,but after some times leater, the server can not connect again,though nothing wrong happens, why? I use procexp_16.05.1446001339.exe to check the process…
yuyi
  • 1
  • 2
1 2 3
23
24