This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems with bind and UDP server
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 5 Oct 2006 12:18:20 +0200
- Subject: Re: Problems with bind and UDP server
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
On Sep 27 17:14, Anonymous wrote:
> I compile and run net-snmp under cygwin (I have net-snmp 184.108.40.206).
> The server snmpd by default uses UDP port 161. I now have the most
> recent cygwin DLL and the server snmpd seems no longer to work.
> I think I tracked down the problem to the bind command. For a
> "very simple test" I used Beej's socket programming examples.
> I give the listings at the end of the message.
> The listener program works fine on regular Linux and with older
> cygwin DLLs ..... but under the latest it returns an error.
> Has something changed?
I tried your below example under 1.5.21 and with a more recent developer
version of Cygwin and the tests run fine in both cases:
$ ./udp-talker.exe localhost blah
sent 4 bytes to 127.0.0.1
got packet from 127.0.0.1
packet is 4 bytes long
packet contains "blah"
If there's a bug, it's not triggered by this test. If it triggers
the problem on your machine, I'd assume the influence of some other
piece of software (firewall, virus scanner, etc)
> ** listener.c -- a datagram sockets "server" demo
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html