Re: kevent behavior with TCP socket

2009-08-11 Thread Denis Berezhnoy
Hi Adrian, Thank you very much for clarification! Now it is clear for me. I have the last question. When I try to make mulltiple connections (loop over 100 client sockets) and check status of sockets by getsockopt then for the first couple connections everything seems OK, no error code but for t

Re: kevent behavior with TCP socket

2009-08-10 Thread Adrian Penisoara
Hi, On Mon, Aug 10, 2009 at 5:17 AM, Denis Berezhnoy wrote: > Hi Adrian, > Thank for your answer! I checked that nobody listens for loopback address: > > [de...@freebsd ~]$ sockstat -4 > USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > > denissshd 95390 3 tcp

Re: kevent behavior with TCP socket

2009-08-09 Thread Denis Berezhnoy
Hi Adrian, Thank for your answer! I checked that nobody listens for loopback address: [de...@freebsd ~]$ sockstat -4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS denissshd 95390 3 tcp4 192.168.1.103:22 192.168.11.26:53616 root sshd 95387 3 tcp4

Re: kevent behavior with TCP socket

2009-08-09 Thread Adrian Penisoara
Hi, On Sat, Aug 8, 2009 at 10:42 AM, Denis Berezhnoy wrote: > Hi, > > Sorry for my previous post it was completely unclear I believe. Here is > problem description in pure C. Can you please take a look at the code > below: > > #include > #include > #include > #include > #include > #include

Re: kevent behavior with TCP socket

2009-08-08 Thread Denis Berezhnoy
Hi, Sorry for my previous post it was completely unclear I believe. Here is problem description in pure C. Can you please take a look at the code below: #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char *argv[