From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 04:41:32 2003 Return-Path: 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 74C2E16A4CE for ; Fri, 28 Nov 2003 04:41:32 -0800 (PST) Received: from hotmail.com (law12-f126.law12.hotmail.com [64.4.19.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A5F43FA3 for ; Fri, 28 Nov 2003 04:41:31 -0800 (PST) (envelope-from anilakkur@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 28 Nov 2003 04:41:31 -0800 Received: from 203.200.20.226 by lw12fd.law12.hotmail.msn.com with HTTP; Fri, 28 Nov 2003 12:41:31 GMT X-Originating-IP: [203.200.20.226] X-Originating-Email: [anilakkur@hotmail.com] From: "anil akkur" To: freebsd-questions@FreeBSD.ORG Date: Fri, 28 Nov 2003 18:11:31 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Nov 2003 12:41:31.0712 (UTC) FILETIME=[F3487400:01C3B5AC] Subject: problem in using sendmsg() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2003 12:41:32 -0000 Hi, I am using Free BSD version 5.0. I am getting the error message (EINVAL) when I use sendmsg(). I am initialising all the values of structure msghdr . the code looks likes, struct msghdr msg ; int send_sock ; /* then I am initialising structure msg */ /* Then calll the sendmessage with arguments */ sendmsg(send_sock, &msg, flag) ; /* i used all the values for flag each time */ When it is executed errno is setting to 22. I am not getting the where the fault is . plz help me in getting this solved . thanks in advance , with warm regards, Anil Akkur _________________________________________________________________ Enjoy shopping online? Get this e credit card. http://server1.msn.co.in/features/amex/ It cuts cost & adds value!