Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error 10057

9 views
Skip to first unread message

CyberAlien

unread,
Jun 24, 2001, 10:17:03 AM6/24/01
to
Hi!
I'm trying to create several sockets and then connect to server.
First 42 sockets are ok, but all the rest return error 10057.
What is this error?

I'm using Synapse with Delphi 4 on Win98.
(Same problem with INDY)

Another question: I'm writing a server. Is there
a limit of connections to server too?


Gooijen

unread,
Jun 24, 2001, 10:35:04 AM6/24/01
to

WSAENOTCONN (10057) Socket is not connected.

A request to send or receive data was disallowed because the socket is not
connected

"CyberAlien" <cyber...@europe.com> wrote in message
news:3b35f5fc$1_2@dnews...

CyberAlien

unread,
Jun 24, 2001, 10:59:50 AM6/24/01
to
Hi!

> WSAENOTCONN (10057) Socket is not connected.
Why can't i create more than 42 connections?

> > Another question: I'm writing a server. Is there
> > a limit of connections to server too?

---
CyberAlien.

mailto:cyber...@europe.com
http://slavanap2.sourceforge.net


Mark L Holmes - Team Indy

unread,
Jun 24, 2001, 11:18:13 AM6/24/01
to
Here is the excerpt from the MS Sockets 2 reference which should be in
your delphi help under MS SDK files

WSAENOTCONN

(10057)

Socket is not connected.

A request to send or receive data was disallowed because the socket is
not connected and (when sending on a datagram socket using sendto) no
address was supplied. Any other type of operation might also return this
error - for example, setsockopt setting SO_KEEPALIVE if the connection
has been reset.

CyberAlien wrote:

Please read this portion of the winsock faq for further info on this
subject

http://www.cyberport.com/~tangent/programming/winsock/advanced.html#maxsockets

Ariel

unread,
Jun 24, 2001, 6:20:50 PM6/24/01
to
maybe the server that u are trying to connect limits u to 42 connection at a
time.
try to other server.

"CyberAlien" <cyber...@europe.com> wrote in message

news:3b35ffc1_1@dnews...

0 new messages