Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS.NET: Compartible with MFC6? Pin
Philip Patrick14-Sep-02 23:12
professionalPhilip Patrick14-Sep-02 23:12 
GeneralRe: VS.NET: Compartible with MFC6? Pin
Pavel Klocek15-Sep-02 0:22
Pavel Klocek15-Sep-02 0:22 
GeneralRe: VS.NET: Compartible with MFC6? Pin
Ancient Dragon15-Sep-02 17:09
Ancient Dragon15-Sep-02 17:09 
GeneralRe: VS.NET: Compartible with MFC6? Pin
Pavel Klocek15-Sep-02 19:22
Pavel Klocek15-Sep-02 19:22 
GeneralI got 2 different len from string !!! Pin
Hadi Rezaee14-Sep-02 12:31
Hadi Rezaee14-Sep-02 12:31 
GeneralRe: I got 2 different len from string !!! Pin
ColinDavies14-Sep-02 13:56
ColinDavies14-Sep-02 13:56 
GeneralRe: I got 2 different len from string !!! Pin
Hadi Rezaee14-Sep-02 14:29
Hadi Rezaee14-Sep-02 14:29 
GeneralSetting timeout on socket connect Pin
Rein Hillmann14-Sep-02 11:52
Rein Hillmann14-Sep-02 11:52 
Does anyone know how I can set a timeout value for the connect() method of a socket? If it can't connect within about 200ms then I know that it never will.

At the moment the connect is waiting for about 5-10 seconds before it returns.

My code below:

<br />
target.sin_family = AF_INET;<br />
target.sin_addr.s_addr = *(long *)(host->h_addr);<br />
target.sin_port = htons(port);<br />
s=socket(AF_INET,SOCK_STREAM,0);<br />
<br />
if (s<0) exit(printf("Error creating socket.\n"));<br />
if (!connect(s,(struct sockaddr *)&target, sizeof(target)))<br />
{<br />
   // ....... do my thing here ....<br />
}<br />
if (closesocket(s)) exit(printf("error closing socket.\n"));<br />
<br />

GeneralRe: Setting timeout on socket connect Pin
JohnnyG14-Sep-02 15:32
JohnnyG14-Sep-02 15:32 
GeneralMicrosoft Web Browser ActiveX control Pin
Le centriste14-Sep-02 11:08
Le centriste14-Sep-02 11:08 
GeneralRe: Microsoft Web Browser ActiveX control Pin
Le centriste14-Sep-02 11:13
Le centriste14-Sep-02 11:13 
GeneralRegistering Crystal Report DLLs ! Pin
Hadi Rezaee14-Sep-02 8:56
Hadi Rezaee14-Sep-02 8:56 
GeneralRe: Registering Crystal Report DLLs ! Pin
Shog914-Sep-02 9:29
sitebuilderShog914-Sep-02 9:29 
GeneralRe: Registering Crystal Report DLLs ! Pin
Hadi Rezaee14-Sep-02 14:34
Hadi Rezaee14-Sep-02 14:34 
GeneralCListBox and GetDlgItem Error Pin
Licensed2Code14-Sep-02 8:17
sussLicensed2Code14-Sep-02 8:17 
GeneralRe: CListBox and GetDlgItem Error Pin
Michael Dunn14-Sep-02 8:27
sitebuilderMichael Dunn14-Sep-02 8:27 
GeneralRe: CListBox and GetDlgItem Error Pin
Licensed2Code14-Sep-02 9:19
sussLicensed2Code14-Sep-02 9:19 
GeneralRe: CListBox and GetDlgItem Error Pin
Michael Dunn14-Sep-02 10:24
sitebuilderMichael Dunn14-Sep-02 10:24 
GeneralRe: CListBox and GetDlgItem Error Pin
Licensed2Code16-Sep-02 18:29
sussLicensed2Code16-Sep-02 18:29 
GeneralRe: CListBox and GetDlgItem Error Pin
Pavel Klocek14-Sep-02 9:35
Pavel Klocek14-Sep-02 9:35 
GeneralRe: CListBox and GetDlgItem Error Pin
Licensed2Code16-Sep-02 18:31
sussLicensed2Code16-Sep-02 18:31 
GeneralSimulating doubleclick Pin
Jack Handy14-Sep-02 7:47
Jack Handy14-Sep-02 7:47 
GeneralRe: Simulating doubleclick Pin
Anonymous14-Sep-02 8:25
Anonymous14-Sep-02 8:25 
QuestionWhat causes a "User breakpoint" to be called? Pin
Redeemer-dk14-Sep-02 7:35
Redeemer-dk14-Sep-02 7:35 
AnswerRe: What causes a "User breakpoint" to be called? Pin
Pavel Klocek14-Sep-02 7:43
Pavel Klocek14-Sep-02 7:43 

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.