[fpc-pascal]Open Files / Sockets

Georgi Georgiev skelet_bg at yahoo.com
Fri Oct 25 15:57:47 CEST 2002


 --- Ziegenhorn Tourism Database <info at ziegenhorn.de>
wrote: > 
> 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




More information about the fpc-pascal mailing list