Click here to Skip to main content
15,881,588 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: WCHAR copy one char at a time Pin
Richard MacCutchan3-Feb-14 21:39
mveRichard MacCutchan3-Feb-14 21:39 
GeneralRe: WCHAR copy one char at a time Pin
bkelly134-Feb-14 16:14
bkelly134-Feb-14 16:14 
AnswerRe: WCHAR copy one char at a time Pin
Jeremy Falcon12-May-14 6:08
professionalJeremy Falcon12-May-14 6:08 
QuestionPlease describe overlapped operations Pin
bkelly1319-Jan-14 9:16
bkelly1319-Jan-14 9:16 
Windows 7, Visual Studio 2008,C++, TCP/IP

Please describe what “overlapped” means in terms of Windows sockets I/O. I found some pages but they describe how to use it rather than what it really is.

Full Motivation

My application will perform high data rate TCP/IP output, and it will be rather bursty. It will call the send function several times in rapid function.

Will the use of the overlapped mode provide an advantage?

My presumption is that the app can initiate TCP/IP output on multiple buffers and each becomes an almost completely separate I/O function.

More Info

The app will send out what I call messages. Each message can have its own unique buffer containing all the packet overhead and data. Message A (of A through Z) will very seldom be sent twice in a single burst. I can arrange for an array or structure of messages A through Z keeping them completely separate from each other. Using that, I am thinking that the overlapped option will be useful.

From this Microsoft web page:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740087(v=vs.85).aspx

My reading of the last four or so paragraphs, indicates that overlapped will facilitate the fast and bursty I/O needed.

Further reading leads me to tentatively conclude that the app can call WSAGetOverlappedResult passing in the address of each specific buffer (along with other goodies) and the return value will indicate if the I/O has completed to the point that the app can re-write that buffer without fear of any data being lost.

Bonus Question

In the web page for WSAGetOverlappedResult, the minimum supported client is Windows 2000 Professional [desktop apps only]. Does that include Windows XP Pro and Windows 7?

I see there is more to this and am studying the help page on WSAGetOverlappedResult and WSAOVERLAPPED structure. (Hmmm, event handle. That looks helpful, as in WaitForMultipleObjects())
Conclusion

I don’t ask for all the details, just a basic explanation and comment as to if I am going down a viable and/or a good path.
Thanks for your time
If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig_106/

AnswerRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 0:18
mveRichard MacCutchan20-Jan-14 0:18 
GeneralRe: Please describe overlapped operations Pin
bkelly1320-Jan-14 3:46
bkelly1320-Jan-14 3:46 
GeneralRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 6:38
mveRichard MacCutchan20-Jan-14 6:38 
GeneralRe: Please describe overlapped operations Pin
bkelly1320-Jan-14 9:12
bkelly1320-Jan-14 9:12 
GeneralRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 22:12
mveRichard MacCutchan20-Jan-14 22:12 
GeneralRe: Please describe overlapped operations Pin
pasztorpisti4-Apr-14 10:25
pasztorpisti4-Apr-14 10:25 
GeneralRe: Please describe overlapped operations Pin
pasztorpisti4-Apr-14 10:26
pasztorpisti4-Apr-14 10:26 
SuggestionRe: Please describe overlapped operations Pin
Richard MacCutchan4-Apr-14 23:15
mveRichard MacCutchan4-Apr-14 23:15 
QuestionWinsock Peer to Peer using UDP and TCP Pin
SD120810-Jan-14 4:27
SD120810-Jan-14 4:27 
AnswerRe: Winsock Peer to Peer using UDP and TCP Pin
Albert Holguin10-Jan-14 4:59
professionalAlbert Holguin10-Jan-14 4:59 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
SD120810-Jan-14 5:08
SD120810-Jan-14 5:08 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
Albert Holguin10-Jan-14 7:34
professionalAlbert Holguin10-Jan-14 7:34 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
SoMad10-Jan-14 8:56
professionalSoMad10-Jan-14 8:56 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
bkelly1319-Jan-14 9:28
bkelly1319-Jan-14 9:28 
Generallink error 1104 Pin
Prasun Hazra 5-Jan-14 8:15
Prasun Hazra 5-Jan-14 8:15 
GeneralRe: link error 1104 Pin
Richard MacCutchan5-Jan-14 22:16
mveRichard MacCutchan5-Jan-14 22:16 
GeneralRe: link error 1104 Pin
Prasun Hazra 7-Jan-14 23:10
Prasun Hazra 7-Jan-14 23:10 
GeneralRe: link error 1104 Pin
Richard MacCutchan7-Jan-14 23:25
mveRichard MacCutchan7-Jan-14 23:25 
AnswerRe: link error 1104 Pin
Albert Holguin8-Jan-14 17:11
professionalAlbert Holguin8-Jan-14 17:11 
QuestionHow to create and register two dlls with same name?(VS 2010) Pin
J_Me10-Dec-13 21:43
professionalJ_Me10-Dec-13 21:43 
AnswerRe: How to create and register two dlls with same name?(VS 2010) Pin
Richard MacCutchan10-Dec-13 22:21
mveRichard MacCutchan10-Dec-13 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.