Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-10

Open Files / Sockets

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ziegenhorn Tourism Database

Hello,

when using the unit Sockets and opening and CLOSING a lot of files/sockets, after about 255 open/close it seems impossible continue. Error: Unable to open .....

Any hints?

Heinz

*************************************
Ziegenhorn Tourism Database
P.O. Box 16 45
76726 Germersheim, Germany
Tel: +49-7274-2759 Fax: +49-7274-3631
http://www.ziegenhorn.com
*************************************

Reply by email

Georgi Georgiev
to Ziegenhorn Tourism Database

--- Ziegenhorn Tourism Database
wrote: >

Show quoted text 8 lines
Hello, when using the unit Sockets and opening and CLOSING a lot of files/sockets, after about 255 open/close it seems impossible continue. Error: Unable to open ..... Any hints?

The proper close of TCP connection is:

shutdown(conn,2);
fdclose(conn);

=====
Skelet
====== http://skelet.hit.bg

__________________________________________________ Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Reply by email