delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/26/09:02:59

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 DOT 212 DOT 201 DOT 104 DOT 13 DOT 1151323919 DOT squirrel AT webmail DOT iitk DOT ac DOT in> <20060626122250 DOT GG11077 AT calimero DOT vinschen DOT de>
Date: Mon, 26 Jun 2006 18:32:43 +0530 (IST)
Subject: Re: problem running a UDP client and server
From: "Varun Sharma" <varunsh AT iitk DOT ac DOT in>
To: cygwin AT cygwin DOT com
Reply-To: varunsh AT iitk DOT ac DOT in
User-Agent: SquirrelMail/1.4.5-1
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019