On Monday, 12 November 2012 09:26:27 UTC+11, alex martin wrote:
> ... read function don't wait the response from modem ?
It is not clear to me what your problem is. If you like help, just post small program for us to demonstrate your issue.
> ... Are there someone that use this packages??
I think, I looked at this package long time ago.
> ... I don't know the syscall in windows so the following piece of code is for me "mysterious" ...
I always look at the source code so see what it does. Also see, for example,
http://msdn.microsoft.com/en-us/library/ff802693.aspx for "why", especially "Overlapped I/O" section.
> ... How can i wait the response from modem ?
I could be wrong, but I think (*goserial.serialPort).Read should work for you.
> ... Why some functions, like syscall.ReadFile, is not present in web documentation?
Are you referring to
http://tip.golang.org/pkg/syscall/ ? If you are, it is running "godoc -http=:80" command on platform other them windows. And godoc command only shows packages for the platform it runs on. syscall package looks different on different platforms. You could use godoc command on you computer to see what you need. Alternatively, just look at the source files.
Alex