Click here to Skip to main content
11,802,762 members (71,368 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Windows Sockets
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 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 CPallini 270
4 Sergey Alexandrovich Kryukov 239
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,695
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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