[Gambas-user] Re: Re: Non GUI objects and events
Øystein Selbekk
oystein at ...816...
Sun Feb 20 14:52:32 CET 2005
I dont think i did explain myself correctly. I get this to work just fine in a GUI environment. The problem appears when i declare the ServerSocket in a class like this:
PUBLIC Server as NEW ServerSocket. This is when i dont get any events. And i need to do it in a class because this is not a GUI project.
Regards Oystein Selbekk
>From: Bodard Fabien <gambasfr at ...854...>
>Re: Non GUI objects and events
>2005-02-20 01:39
>
> Le samedi 19 Février 2005 23:13, Øystein Selbekk a écrit :
> > Hi.... Im trying to create a server in gambas that will recieve TCP
> > connections. It needs to fire an event when a new connection is made to the
> > server. I just cant figure out how to do this in gambas. In VB we have
> > something called withevents. I have look a bit at the class event thing...
> > but i cant get it to work really....
> >
> > Regards Oystein Selbekk
>
> Hi,
>
> Have you already look in the gambas exemple ?
>
> There is an exemple in the gambas IDE for that : "ServerSocket"
> It show when the client where connected. event _Connect
>
> Regards,
> Fabien Bodard
More information about the User
mailing list