Click here to Skip to main content
Rate this: bad
good
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.
 
2.now 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 21:10pm

1 solution

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

Solution 1

Please do not post the the same question[^] in multiple forums.
  Permalink  
Comments
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 matter...do you have the answer?
Richard MacCutchan at 2-Jul-13 4:17am
   
No.
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 Kornfeld Eliyahu Peter 275
1 Maciej Los 204
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 183
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 2 Jul 2013
Copyright © CodeProject, 1999-2014
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