[Gambas-user] Re: Re: Non GUI objects and events

Daniel Campos daniel.campos at ...338...
Mon Feb 21 08:00:02 CET 2005


Øystein Selbekk escribió:

>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
>  
>

Here you can find a complete example of ServerSocket:

http://forja.linex.org/download.php/172/controlaula_0.5.4-1.tar.gz

The package contains two programs: one of them, "sirvecole", is a 
non-gui application that
user ServerSocket, i think you can find there all that you want to do.

Regards,

D. Campos



>  
>
>>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
>>    
>>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>  
>





More information about the User mailing list