Re: Losing UDP packets with MFC Sockets
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Thu, 14 Apr 2005 09:13:08 -0500
Vicent Soler wrote:
Just two questions:
1.- The buffer size allows to store temporarly more than 1 packet? Or it is related to the maximum packet size?
2.- About the thread: should I use threads for extracting data from input buffer after OnReceive notification?
Thanks in advance
Vicent
You will need to experiment and see if the buffer size makes any difference. My guess is that it will not help.
The CAsyncSocket object works in only one thread. Put all of its code in a thread that you derive from CWinThread. Raise the thread's priority. Call ReceiveFrom immediately in OnReceive.
-- Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: Losing UDP packets with MFC Sockets
- From: Vicent Soler
- Re: Losing UDP packets with MFC Sockets
- References:
- Losing UDP packets with MFC Sockets
- From: Vicent Soler
- Re: Losing UDP packets with MFC Sockets
- From: Scott McPhillips [MVP]
- Re: Losing UDP packets with MFC Sockets
- From: Vicent Soler
- Losing UDP packets with MFC Sockets
- Prev by Date: std::list, std::vector what would be best?
- Next by Date: Re: std::list, std::vector what would be best?
- Previous by thread: Re: Losing UDP packets with MFC Sockets
- Next by thread: Re: Losing UDP packets with MFC Sockets
- Index(es):
Relevant Pages
|
Loading