From: hce <web...@gm...> - 2008-02-20 07:44:26
|
On Feb 20, 2008 6:28 PM, Vincent Torri <vt...@un...> wrote: > > > On Wed, 20 Feb 2008, hce wrote: > > > Hi, > > > > I am using a select() function to read data from serial port, but > > could not get it work, calling select is always returns -1. I am using > > minGW version 5.1.3. Is the select() does not work in that version, or > > what I am missing? > > did you call WSAStartup to initialise the sockect system ? > > also, you can use WSAGetLastError to check the error I am not using select() for socket system, but a file system to read data from a serial port. I guess I need posix support for that mechamism. Does the minGW support posix? Thank you. Jim |