[Gambas-user] Network Component Problem

ron ronstk at ...239...
Thu Apr 15 17:14:10 CEST 2004


On Thursday 15 April 2004 16:25, Dimitri Bellini wrote:
> Dear All
> 	i want to use the network component so i see the example ServerSocket and
> i put it in a new Project but when i RUN it Gambas return an Error like
> this: "Null Object" in this line
> Server.Type=Net.Internet
> The Code:
> -----
> '-------------- Network Server
> PRIVATE Server AS ServerSocket
> PRIVATE Client AS Object[]
> PRIVATE Waiting AS Boolean
> .....
> PUBLIC SUB Button1_Click()
>
>   IF combobox2.Index=0 THEN
>     'TCP
>     Server.Type=Net.Internet
>     ' The port to listen to
>     Server.Port=Val(TextBox1.Text)
>     ' we start listening
>     Server.Listen(ComboBox1.Index)
>   ELSE
>     ' UNIX
>     Server.Type=Net.Unix ' You could also use Net.Local
>     Server.Path=TxtPath.Text
>     Server.Listen(ComboBox1.Index)
>   END IF
>  -------------------------------

you can try till Daniel gives a better solution if exist.

PRIVATE Server AS Socket 
instead of
PRIVATE Server AS ServerSocket





More information about the User mailing list