X-Spam-Check-By: sourceware.org
X-Virus-Scanner: This message was checked by NOD32 Antivirus system 	for Linux Server. For more information on NOD32 Antivirus System, 	please, visit our website: http://www.nod32.com/.
Message-ID: <42831.212.201.104.13.1151326963.squirrel@webmail.iitk.ac.in>
In-Reply-To: <20060626122250.GG11077@calimero.vinschen.de>
References: <35711.212.201.104.13.1151323919.squirrel@webmail.iitk.ac.in>     <20060626122250.GG11077@calimero.vinschen.de>
Date: Mon, 26 Jun 2006 18:32:43 +0530 (IST)
Subject: Re: problem running a UDP client and server
From: "Varun Sharma" <varunsh@iitk.ac.in>
To: cygwin@cygwin.com
Reply-To: varunsh@iitk.ac.in
User-Agent: SquirrelMail/1.4.5-1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

 Hi,
 I would write some points here for that long code which make sense to me
and may be the problem.

1. I tried both MSG_PEEK and MSG_OOB and still I am getting an EINVAL.

2. The process does a fork and the child does the connect to the
destination, sendto and the parent does the recvfrom.

3. The 4th element of the struct sockaddr_in is not very clear in cygwin
and it is the case with all instances of sockaddr_in, but they do not seem
to create a problem as they are running fine in other programs using
datagram UDP sockets.

Also the uninitialized values of the elements of src sockaddr_in is
different in linux.

I think these might be the one that are creating problems.

Any advice would be helpful.

Thanks a lot,
Varun Sharma


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

