1. How to use select() ?

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 :)

new topic     » topic index » view message » categorize

2. Re: How to use select() ?

Atomicbomber said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: How to use select() ?

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: How to use select() ?

Your antivirus program (Norton, I'd bet) is probably terminating the application under the assumption that it's a malicious application.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu