How do you skip the unwanted remote connection without accepting ?
I think that the unwanted connection is in a queque.
....
bind;
listen;
while ture do
begin
if canread(500) then
begin
remotesock := accept;
inc(connection_count);
if (connection_count> CON_LIMIT) then
begin
drop_remote_connection; <----
end
else
Dowork;
end;
end;
end;
2006/10/21, Lukas Gebauer <[EMAIL PROTECTED]>:
> > After a new remote connection comming, I check the connection count.
> > If the connection count greater than 5, I want to drop the remote
> > connection.
> >
> > 2006/10/20, Lukas Gebauer <[EMAIL PROTECTED]>:
> > > > After accepting a new connection, how to drop it ?
> > >
> > > What about socket close?
>
> Well, but why you are accepting this new unwanted connection? Just stop
> with accepting of new connections and continue with accepting later.
>
> --
> Lukas Gebauer.
>
> E-mail: [EMAIL PROTECTED]
> WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP
> Library
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
--
--
WenGe Wang
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public