Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
[EMAIL PROTECTED] To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Tuesday, 4 November, 2008 2:35:21 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with READ on a UDP socket On mardi 4 novembre 2008, Gareth Bult wrote: Hi, I think I

Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote: Erm, Ok .. I was expecting a buffer layer between socket library and Gambas .. but that aside, If I'm expecting a binary packet via a UDP socket, for example; type - 1 byte number - 4 bytes size - 2 bytes payload - up to 1024, dictated by size

Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
Sent: Tuesday, 4 November, 2008 3:51:14 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with READ on a UDP socket On mardi 4 novembre 2008, Gareth Bult wrote: Erm, Ok .. I was expecting a buffer layer between socket library and Gambas .. but that aside, If I'm

Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Benoit Minisini wrote: On mardi 4 novembre 2008, Gareth Bult wrote: Hi, I think I reported this quite a while ago but it still seems to be a problem ... using READ to try to acquire less than the entire available buffer doesn't seem to work .. and if I read the

Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote: Hi, I think I reported this quite a while ago but it still seems to be a problem ... using READ to try to acquire less than the entire available buffer doesn't seem to work .. and if I read the entire buffer, there's no obvious way to break the

[Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
Hi, I think I reported this quite a while ago but it still seems to be a problem ... using READ to try to acquire less than the entire available buffer doesn't seem to work .. and if I read the entire buffer, there's no obvious way to break the packet down into it's constituent parts ...

Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote: Without that buffer, it is brain-fucking: No, I can live with that solution.. :-) It was using a pointer as a stream that I missed .. Many thanks, Gareth. I have implemented a buffered UdpSocket in the revision #1669 of Gambas 3. If you could