Hi.... @Thomas: I'll try it...
> 1) Check for errors from socket() and close(). > 2) When an error occurs from connect(), display the errno value. Just for sanity's sake. > 3) Move the close() statement so that it is before the delay() statement. Also, make sure it is actually a socket before using the call. > 4) Try zeroing and rebuilding the sockaddr structure (peer). @Ananth: You're right, sleep can reduce the CPU process (that's why I put delay there) @TheOldWiseKing: I think that's the point.. socket will increase my memory usage, but without that line, I can't reconnect it :P should I use delete() or make the tcp_socket 0 first, before recreate the socket? Thanks.. -- Andreanes Yosef Vanderlee Phone: +62817 139 308, +62815 915 2766 homepage: http://vanderlee.web.id YM!: andre_flea gtalk: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] skype: andre_flea friendster: http://friendster.com/vanderlee
