Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
On 04/03/2011 08:46 PM, Benoît Minisini wrote: > Finally I come with a solution. Well I hope. > > I added three new methods to the Stream class (and so to its child classes: > File, Socket, UdpSocket...) in revision #3730. > > Stream.Begin(), Stream.Send() and Stream.Drop(). > > All WRITE instructi

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Benoît Minisini
> I'm finding that the task of replacing the Mk$ functions with structures > for UDP packet client/server transactions is a massive undertaking. So > far it's affecting every part of my project that constructs, parses, > sends and receives data. As a consequence the network code is going from > doz

Re: [Gambas-user] New Gambas website design

2011-04-03 Thread John Spikowski
On Mon, 2011-04-04 at 00:47 +0200, Benoît Minisini wrote: > I am not satisfied with the image in the middle of the page. I think it looks fine and helps the 'branding' aspect of Gambas. -- Create and publish website

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Doriano Blengino
Il 03/04/2011 22:07, Kevin Fishburne ha scritto: > On 04/03/2011 02:27 PM, Benoît Minisini wrote: > >> OK... I should have read all that more carefully, as I have said rubbish. >> >> Sending a message to an UDP socket can only be done with a string or a >> structure. If you use several WRITE in

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
On 04/03/2011 09:33 AM, Jussi Lahtinen wrote: >> With respect to Doriano, how would one use the memcpy() statement in >> GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void >> *src, size_t n);" shows the syntax in C. My two questions are, how do >> you call external library funct

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
On 04/03/2011 02:27 PM, Benoît Minisini wrote: > > OK... I should have read all that more carefully, as I have said rubbish. > > Sending a message to an UDP socket can only be done with a string or a > structure. If you use several WRITE instructions, you will get one message by > WRITE. Not a good

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Benoît Minisini
> > I'm finding that the task of replacing the Mk$ functions with structures > > for UDP packet client/server transactions is a massive undertaking. So > > far it's affecting every part of my project that constructs, parses, > > sends and receives data. As a consequence the network code is going fr

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Doriano Blengino
Il 03/04/2011 15:33, Jussi Lahtinen ha scritto: >> With respect to Doriano, how would one use the memcpy() statement in >> GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void >> *src, size_t n);" shows the syntax in C. My two questions are, how do >> you call external library fun

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Jussi Lahtinen
> With respect to Doriano, how would one use the memcpy() statement in > GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void > *src, size_t n);" shows the syntax in C. My two questions are, how do > you call external library functions in gb, and how would you translate > the C sy

[Gambas-user] [Fwd: Re: How to find out internet status]

2011-04-03 Thread Demosthenes Koptsis
after step 2 you must check if you have set up to use DNS make user@ubuntu-laptop:~$ cat /etc/resolv.conf # Generated by NetworkManager nameserver 192.168.0.1 then you know which is the DNS you use. -- Regards, Demosthenes --- Begin Message --- As net admin i would check in order 1) ping th

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread Demosthenes Koptsis
As net admin i would check in order 1) ping the dns of LAN, for example a Linux box inside the LAN example ping 192.168.0.3 2)if there is no DNS in LAN, ping the DNS of ISP example ping the.dnsofisp.com 3) if you are sure that you have a working DNS, ping google example ping www.google.com 3) i

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread tobias
hi, this for sure isn't the best solution but my first thought was using ifconfig to determine if your internet interface (maybe eth0 or whatever) has an ip address which should mean that it is connected..? (i don't know how it works with a modem) this way you are at least independant of a test

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread Doriano Blengino
Il 03/04/2011 11:31, Ganesh Kumar ha scritto: > Hi Guys, > > I am new to Gambas with networking field. I want find out internet > connection in > my system or NOT. > I don't use ping command. > > ping www.yahoo.com its pinging...yes internet connection is there is > working fine. > > one day yahoo

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread Ganesh Kumar
Thanks for you kindly reply, > what connection do you use? I have to use ADSL , But my situation I dont see modem-router My only option i have to use with script only.. Any Gambas modules will be there check internet status > If you use ADSL you can see the STATUS of your modem-router, it will

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread Demosthenes Koptsis
Hello, what connection do you use? If you use ADSL you can see the STATUS of your modem-router, it will say something like: CONNECTION IS UP, or VC1 IS UP, or ADSL IS UP. it will also display the IP and other info. You can make a bookmark for your Router page on Firefox and also save the login

[Gambas-user] How to find out internet status

2011-04-03 Thread Ganesh Kumar
Hi Guys, I am new to Gambas with networking field. I want find out internet connection in my system or NOT. I don't use ping command. ping www.yahoo.com its pinging...yes internet connection is there is working fine. one day yahoo server is down.. How to find out..try another website.. Its not

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Benoît Minisini
> On 04/01/2011 05:24 AM, Benoît Minisini wrote: > > Using a structure just allow you to directly use the READ/WRITE > > instruction because they have a build-in serialization support. But as > > you noticed, handling a lot of different structures is not handy! > > Yes, because I need to keep a tr