Click here to Skip to main content
11,716,249 members (88,576 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Windows socket
Hello everyone,

I am trying to implement zero copy mechanism i.e. a contrary function to the TransmitFile() API.
But I don't know how to register buffers in kernel.Below are the details what I want to do to implement zero copy:

1.we will receive a large data from the server in our client buffer, i have a doubt here also that weather data will come to socket buffer(client's) or first it will come into NIC buffer,please clear this doubt also. from socket buufer i want to copy the data directly to the kernel buffer and then to file in the disc without going for read and write system calls i.e without switching contexts.

3.Data has to be moved directly to kernel buffer within kernel space only.

Is there any API or some method???? any suggestions???
Posted 1-Jul-13 20:10pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please do not post the the same question[^] in multiple forums.
Satya144 at 2-Jul-13 3:49am
well i want the solution so i posted it in many forums.
Richard MacCutchan at 2-Jul-13 4:03am
Well that is not the way to get the answer; please play by the rules.
Satya144 at 2-Jul-13 4:04am
ok leave that you have the answer?
Richard MacCutchan at 2-Jul-13 4:17am
H.Brydon at 2-Jul-13 12:03pm
Please do not post a non-solution as a solution.
Richard MacCutchan at 2-Jul-13 12:18pm
It's a notice to the OP, and a solution entry, with a link to the duplicate, to remove it from the unanswered queues, which is correct procedure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 599
1 Richard MacCutchan 280
2 Maciej Los 275
3 OriginalGriff 160
4 F-ES Sitecore 135
0 Sergey Alexandrovich Kryukov 1,003
1 Richard MacCutchan 430
2 CHill60 415
3 Maciej Los 399
4 OriginalGriff 385

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 2 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100