[Gambas-user] Problmes with sockets

Daniel Campos danielcampos at ...282...
Fri Jul 15 22:36:21 CEST 2005


Hi:

Yes, you can have the same handler: the "LAST" keyword points to the
current object that is raising the event.

Regards,

D. Campos

PaquitoSoft escribió:

>Thanks a lot for your quick answer Daniel.
>
>I have a little one more... Since I will have a lot of sockets running
>at the same time, can I use the same handler for them???
>(Inside the handler I would check what sockets is really raising the
>event) 
>
>
>El lun, 11-07-2005 a las 08:45 +0200, Daniel Campos escribió:
>  
>
>>You must specify the event handlers, that is, you can do, for example:
>>
>>Public Srv As ServerSocket
>>
>>Srv=NEW ServerSocket AS "Srv"
>>
>>So you can use:
>>
>>PUBLIC SUB Srv_Connection(sHost As String)
>>
>>...
>>
>>
>>END
>>
>>
>>The same thing with the client:
>>
>>Public Sock As Socket
>>
>>Sock=New Socket AS "Client"
>>
>>...
>>
>>PUBLIC SUB Client_Ready()
>>..
>>
>>END
>>
>>
>>Regards,
>>
>>D. Campos
>>
>>
>>    
>>
>
>  
>





More information about the User mailing list