Re: Using Sockets



"Chris Baker" <ChrisBaker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:76CCDB8F-5351-4DC6-8CF8-2698517C7B88@xxxxxxxxxxxxxxxx
> Cheers Michael,
>
> One more thing......Can I specify a timeout value for the send and connect
> commands?
>
> Chris
>
>

No. For that you need to derive a class from CSocket and override the
virtual OnMessagePending function. See "How To Configure a Time-Out on a
CSocket Operation" at http://support.microsoft.com/kb/q138692/ . Also, do a
Google search for "CTimeoutSocket"

Mike


.



Relevant Pages

  • Re: Using Sockets
    ... One more thing......Can I specify a timeout value for the send and connect ... Chris ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: [PATCH 2/4 v2] libata: Implement disk shock protection support
    ... Doesn't prepare_to_waithave to come before pull_action and timeout ... to failed commands on another device. ... int nr_failed_devs; ...
    (Linux-Kernel)
  • Re: socket buffer flush question
    ... hardware, in which there could sometimes be timeouts. ... responses from that hardware. ... When a timeout happens, for some reason extra data is stored inside ... It looks to me like you've sent 6 more commands during the timeout period, ...
    (comp.lang.python)
  • Re: Advantech ADAM-6018 Communication With LabView
    ... bytes and reports a timeout error. ... Buffered?Waits until all bytes you specify ... This technique is the most flexible, ...
    (comp.lang.labview)
  • Re: DataView Timeout Becomes SQLReader Sorting Issue
    ... <<<so I looked around and found that if I use a SQLReader I can specify a ... The ADO.NET SQLCommand object has a timeout value... ... A SQLDataReader is meant only for forward-only read-only activity. ... > found that if I use a SQLReader I can specify a Timeout value. ...
    (microsoft.public.dotnet.framework.aspnet)