[Gambas-user] Socket Timeout

T Lee Davidson t.lee.davidson at gmail.com
Sat Jan 27 19:19:28 CET 2018


The Timer in the example is to set a timeout for establishing a connection. As far as I understand it, the Timeout property is
not a connection timeout but a send/receive timeout. This would mean that it would trigger Net.CannotRead/Net.CannotWrite errors
but not connection timeout errors.

-- 
Lee


On 01/27/2018 02:19 AM, Patrik Karlsson wrote:
> I'm using Socket for the first time in Gambas and started out by looking at the ClientSocket example.
> https://gitlab.com/gambas/gambas/blob/master/app/examples/Networking/ClientSocket/.src/FrmMain.class
> 
> Do one have to use a Timer like that since Socket has its own Timeout property and Error event?
> 
> http://gambaswiki.org/wiki/comp/gb.net/socket/timeout?nh
> http://gambaswiki.org/wiki/comp/gb.net/socket/.error?nh
> 
> /Patrik
> 


More information about the User mailing list