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
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
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
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
ose(cd);
close(sd);
printf("Socket test end\n");
}
Program output
Socket test start
Failed to connect with server 36
Kevent event num 1 wait time 26
Event filter -2 flag 0 data 43008
Socket test end
The question is why kevent returns 1 event when server does not accept
connections
Hi guys,
I have question regarding kevent behavior with TCP socket. Hope you can
advise anything.
I am trying to connect the server in non block mode. When I call connect it
returns -1 and errno=EINPROGRESS. Then I use kqueue and kevent with
EVFILT_WRITE and timeout 100 msec to wait when