Click here to Skip to main content
11,428,876 members (62,766 online)

ATL / WTL / STL

 
GeneralRe: unicode and non-unicode Pin
bkelly1320-Jan-13 9:56
memberbkelly1320-Jan-13 9:56 
GeneralRe: unicode and non-unicode Pin
pasztorpisti20-Jan-13 11:45
memberpasztorpisti20-Jan-13 11:45 
AnswerRe: unicode and non-unicode Pin
Albert Holguin11-Feb-13 6:10
memberAlbert Holguin11-Feb-13 6:10 
Questionsqlconfigdatasource fails on 64 bit from 64 application Pin
khaliloenit11-Jan-13 0:02
memberkhaliloenit11-Jan-13 0:02 
AnswerRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
Richard MacCutchan11-Jan-13 0:10
mvpRichard MacCutchan11-Jan-13 0:10 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
khaliloenit11-Jan-13 0:14
memberkhaliloenit11-Jan-13 0:14 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
Richard MacCutchan11-Jan-13 0:32
mvpRichard MacCutchan11-Jan-13 0:32 
QuestionProblem with embedded ATL component Pin
HungryCPPDev7-Jan-13 2:08
memberHungryCPPDev7-Jan-13 2:08 
Questionbooks: activeX and com, [modified] Pin
bkelly131-Jan-13 10:58
memberbkelly131-Jan-13 10:58 
AnswerRe: books: activeX and com, Pin
Jonathan Davies10-Jan-13 2:56
memberJonathan Davies10-Jan-13 2:56 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pin
vermaashish_mca31-Dec-12 1:27
membervermaashish_mca31-Dec-12 1:27 
QuestionTCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1321-Dec-12 7:09
memberbkelly1321-Dec-12 7:09 
AnswerRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti22-Dec-12 10:51
memberpasztorpisti22-Dec-12 10:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1327-Dec-12 7:16
memberbkelly1327-Dec-12 7:16 
Wow, what an incredible reply.  
I don't understand everything you wrote, but a question or two will help.

This is a telemetry application.   It receives data from the hardware as a series of identified parameters.   It extracts messsages from within the list of parameters and sends the data to the display device. It outputs data via TCP/IP to the display device, but does not input anything via TCP/IP.

When I switched to asynchronous TCP/IP I discovered about WOULDBLOCK and created an array that buffers data until OnSend is called.   That worked OK at relatively slow packet rates, two per milliseconds.  

Upon adding in another set of payload packets (there are several types of payload packets that can be inhibited or enabled at run time) the payload packet rate jumped up to five to fifteen or so payload packets per millisecond.   They are generally smaller packets, but the order is indeterminate so it is very intensive to combine payload packets to reduce the overall payload packet rate.

When that happened, the app ran out of buffer space and started loosing payload packets.   I bumped up the buffer size from 16, to 32, to 64, then jumped to 240.   It still overflowed.

My interpertation is that CAsyncSocket cannot keep up with this packet rate.   When I use blocking TCP/IP calls it works okay.   I can even run four simultaneous copies with no trouble.

As I understand your post, I am thinking that this probably cannot be accomplished with CAsyncSocket.  

If that a true or false statement?  

Don't write too much, I will certainly need to think a while, and re-read your post depending on how you answer this question.

Thanks for your time
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti27-Dec-12 14:47
memberpasztorpisti27-Dec-12 14:47 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API [modified] Pin
bkelly1328-Dec-12 4:08
memberbkelly1328-Dec-12 4:08 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 4:37
memberpasztorpisti28-Dec-12 4:37 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1327-Dec-12 9:22
memberbkelly1327-Dec-12 9:22 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti27-Dec-12 15:02
memberpasztorpisti27-Dec-12 15:02 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
SoMad27-Dec-12 15:51
memberSoMad27-Dec-12 15:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1328-Dec-12 4:13
memberbkelly1328-Dec-12 4:13 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 6:06
memberpasztorpisti28-Dec-12 6:06 
Questioncalling virtual base class Pin
bkelly1314-Dec-12 8:36
memberbkelly1314-Dec-12 8:36 
AnswerRe: calling virtual base class Pin
pasztorpisti18-Dec-12 23:39
memberpasztorpisti18-Dec-12 23:39 
AnswerRe: calling virtual base class Pin
Albert Holguin19-Dec-12 8:22
memberAlbert Holguin19-Dec-12 8:22 
GeneralThe reason for the question Pin
bkelly1319-Dec-12 16:51
memberbkelly1319-Dec-12 16:51 
GeneralRe: The reason for the question Pin
Richard MacCutchan20-Dec-12 0:06
mvpRichard MacCutchan20-Dec-12 0:06 
GeneralRe: The reason for the question Pin
bkelly1321-Dec-12 7:11
memberbkelly1321-Dec-12 7:11 
Questioncannot add control variable to checkbox Pin
bkelly1314-Dec-12 4:07
memberbkelly1314-Dec-12 4:07 
AnswerRe: cannot add control variable to checkbox Pin
Richard MacCutchan14-Dec-12 4:36
mvpRichard MacCutchan14-Dec-12 4:36 
GeneralRe: cannot add control variable to checkbox Pin
bkelly1314-Dec-12 6:18
memberbkelly1314-Dec-12 6:18 
Questiondetect multiple instances of an application Pin
bkelly1310-Dec-12 13:28
memberbkelly1310-Dec-12 13:28 
AnswerRe: detect multiple instances of an application Pin
Pete O'Hanlon10-Dec-12 13:31
protectorPete O'Hanlon10-Dec-12 13:31 
GeneralRe: detect multiple instances of an application Pin
bkelly1310-Dec-12 14:38
memberbkelly1310-Dec-12 14:38 
AnswerRe: detect multiple instances of an application Pin
H.Brydon31-Dec-12 21:09
memberH.Brydon31-Dec-12 21:09 
QuestionOpen file in basic MFC app Pin
bkelly135-Dec-12 15:45
memberbkelly135-Dec-12 15:45 
AnswerRe: Open file in basic MFC app Pin
Richard MacCutchan5-Dec-12 22:24
mvpRichard MacCutchan5-Dec-12 22:24 
GeneralRe: Open file in basic MFC app Pin
bkelly139-Dec-12 12:36
memberbkelly139-Dec-12 12:36 
GeneralRe: Open file in basic MFC app Pin
Richard MacCutchan9-Dec-12 22:36
mvpRichard MacCutchan9-Dec-12 22:36 
Generalthe answer is Pin
bkelly139-Dec-12 13:25
memberbkelly139-Dec-12 13:25 
QuestionHow To Use Macro In dsp file(VC6.0 *.dsp file) Pin
yingkou27-Nov-12 15:37
memberyingkou27-Nov-12 15:37 
AnswerRe: How To Use Macro In dsp file(VC6.0 *.dsp file) Pin
Richard MacCutchan28-Nov-12 0:34
mvpRichard MacCutchan28-Nov-12 0:34 
QuestionAccessibleObjectFromWindow returns E_ACCESSDENIED Pin
BianChengNan26-Nov-12 0:04
memberBianChengNan26-Nov-12 0:04 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 1:44
memberDhrumilS23-Nov-12 1:44 
Newshacker240union Pin
hacker240union23-Nov-12 0:40
memberhacker240union23-Nov-12 0:40 
Questioncopying AAComBSTR to BYTE Pin
V K 220-Nov-12 21:56
memberV K 220-Nov-12 21:56 
AnswerRe: copying AAComBSTR to BYTE Pin
Richard MacCutchan20-Nov-12 22:28
mvpRichard MacCutchan20-Nov-12 22:28 
AnswerRe: copying AAComBSTR to BYTE Pin
hacker240union23-Nov-12 0:27
memberhacker240union23-Nov-12 0:27 
QuestionC++ Delegate/Events Pin
Edward G Dana14-Nov-12 18:15
memberEdward G Dana14-Nov-12 18:15 
AnswerRe: C++ Delegate/Events Pin
Richard MacCutchan14-Nov-12 21:57
mvpRichard MacCutchan14-Nov-12 21:57 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 30 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid