From owner-freebsd-questions Sun Feb 16 3: 8:22 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17AB537B401 for ; Sun, 16 Feb 2003 03:08:20 -0800 (PST) Received: from undead.dnn.ru (dnn.ru [212.158.164.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 074E043FA3 for ; Sun, 16 Feb 2003 03:07:51 -0800 (PST) (envelope-from alex@dynaweb.ru) Received: from dynaweb.ru (dynaweb.dnn.ru [212.158.164.112]) by undead.dnn.ru (8.9.3/8.9.3) with ESMTP id OAA03329 for ; Sun, 16 Feb 2003 14:09:48 +0300 (MSK) (envelope-from alex@dynaweb.ru) Message-ID: <3E4F70FE.20509@dynaweb.ru> Date: Sun, 16 Feb 2003 14:07:42 +0300 From: Alex Reply-To: alex@dynaweb.ru User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: how to define timeout for blocking soket operations? Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi ppl! I'm programming in C and hence is using sockets under FreeBSD. But unlike with SystemV IPC message exchange I didn't find the way I can define timeout for blocking socket operations for not be infinitely waiting them. I can use non-blocking calls and nanosleeps but tis ugly and sometimes doesn't work properly, especially with UDP sockets. Can anybody help me? Or at least to point the docs if available. Alexander Komratov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message