X-Spam-Check-By: sourceware.org Date: Mon, 26 Jun 2006 14:22:50 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: problem running a UDP client and server Message-ID: <20060626122250.GG11077@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <35711 DOT 212 DOT 201 DOT 104 DOT 13 DOT 1151323919 DOT squirrel AT webmail DOT iitk DOT ac DOT in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35711.212.201.104.13.1151323919.squirrel@webmail.iitk.ac.in> User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 26 17:41, Varun Sharma wrote: > > Hi, > I have been trying to run the abing code > (http://www-iepm.slac.stanford.edu/tools/abing/). It basically set up a > UDP client and server and then there are excahnge of UDP packets. I have > been running into troubles since when I have been trying to install it. > Firstly the make file had the -lnsl option which it cannot find in > cygwin, so I removed it and compiled the code and everything worked fine > with the warning that it cannot find the -pthread option. > Then to run the reflector in abing, one has to execute the following > commmand. > ./abw_rfl -c & > ./abing -c > ./abw_rfl & > > But in my case, I get an error when I run ./abing -c saying that revcfrom > failed with invalid argument. The code works fine with no error at all in > a normal linux distro. I am unable to find out the difference. Even UDP > clients and server codes which can be easily downloaded from the net work > fine. > I would be really obliged if someone can tell me the problem or some > ekind of an experience he or she has on installing and using abing on > cygwin. This would require to get some more details from you besides "recvfrom returns EINVAL". http://cygwin.com/problems.html Anyway, I have a wild guess. Windows' recvfrom only understands MSG_OOB and MSG_PEEK. Any other flag value is unsupported and should result in recvfrom returning EINVAL. Maybe that's your problem. Solution: Don't use flags except MSG_OOB and MSG_PEEK. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/