1. How to use select() ?
- Posted by Atomicbomber Dec 11, 2011
- 1606 views
Hello,
I want to use the select() function from the core sockets library (http://openeuphoria.org/docs/std_socket.html#_4994_select), but there is no any example on the Wiki. I have tried to use it on Windows, but the program closes without giving any error messages after it tries to execute the select(), and then I tried the same syntax on Linux and it works.
Can someone provide a working example(on Windows) for me? Thanks :)
2. Re: How to use select() ?
- Posted by mattlewis (admin) Dec 11, 2011
- 1682 views
Hello,
I want to use the select() function from the core sockets library (http://openeuphoria.org/docs/std_socket.html#_4994_select), but there is no any example on the Wiki. I have tried to use it on Windows, but the program closes without giving any error messages after it tries to execute the select(), and then I tried the same syntax on Linux and it works.
Can someone provide a working example(on Windows) for me? Thanks :)
There are two chat demos in the demo/net directory: chat_client.ex, chat_server.ex. They use select().
Matt
3. Re: How to use select() ?
- Posted by Atomicbomber Dec 11, 2011
- 1422 views
I tried to run the chat_server.ex, but upon executing the line that contains socket() [line 59], it crashes without giving any error messages.
4. Re: How to use select() ?
- Posted by m_sabal Dec 12, 2011
- 1349 views
Your antivirus program (Norton, I'd bet) is probably terminating the application under the assumption that it's a malicious application.