Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Delay set up to help connect see?

Delay set up to help connect see?
[code]
Struct sockaddr_in server_addr;
Int count;
Struct linger lin;
Memset (&server_addr,0, sizeof (server_addr));
Server_addr.sin_family = AF_INET;
Server_addr.sin_port = htons (SPORT);
Server_addr.sin_addr.s_addr = (inet_addr (ip));
UnBlock (sockfd);
Lin.l_onoff = 1;
Lin.l_linger = 1000000;
Setsockopt (sockfd, SOL_SOCKET, SO_LINGER, &lin, sizeof (lim));
If (connect (sockfd, (struct sockaddr *) &server_addr.
Sizeof (server_addr)) "0)
        {
Perror ( "connect");
Delete (pswd);
Return (-1);
        }
[/code]
What linger for ah



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com