[Gambas-user] Problmes with sockets
PaquitoSoft
cloroetilo at ...626...
Mon Jul 11 15:34:11 CEST 2005
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
>
>
--
El tiempo es un gran profesor. Desafortunadamente, mata a todos sus
alumnos.
More information about the User
mailing list