[Gambas-user] Network Component Problem

Dimitri Bellini dimitribellini at ...69...
Thu Apr 15 17:34:00 CEST 2004


Dear Ron
	thanks for your help :-) 
I have try to change but i still have the same error :-)
I hope in Daniel..
Dimitri

On Thursday 15 April 2004 05:14 pm, ron wrote:
> 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
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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