lkml.org 
[lkml]   [2002]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: multiple connect on a socket
Date
Hello!

> Shouldn't it throw an error when I
> try to connect to it a second time ? Am I missing something here.

Yes, it used to return success once upon connection is complete.

When the connection is in progress, it returns EALREADY,
after this it returns EISCONN, but success is indicated when it goes
from unconnected to connected state. Maybe, this is wrong but it used
to work in this way.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.101 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site