Re: Very Strange while udp socket polling.

2006-10-10 Thread Christopher Faylor
On Tue, Oct 10, 2006 at 09:47:38PM +0400, Vadim Melihow wrote: >And after poll >[EMAIL PROTECTED] ~/ >$ netstat -a -n -o |grep 2860 > UDP0.0.0.0: *:*2860 > UDP127.0.0.1:3074 *:*2860 > > >why 'pol

Very Strange while udp socket polling.

2006-10-10 Thread Vadim Melihow
Hello, Just very simple program and very strange behaviour int main() { int fd; struct pollfd pds[2]; struct sockaddr_in sai; fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); sai.sin_family = AF_INET; sai.sin_port= htons();