1. [wxEuphoria] socket client/server

I'm developing a chat client/server for "tabletop rpg" over internet.

I started using the Ray Smith's Eulibnet, but it is very limited and unstable. So I wanted to give a try on wxEuphoria's socket, and I had no clue on how to start.

Can anyone please write a simple server and a client in wxEuphoria, so I can learn from this example.

Sorry for my bad english and thanks in advance.

new topic     » topic index » view message » categorize

2. Re: [wxEuphoria] socket client/server

This has nothing to do with wxEuphoria's socket library, but 4.0 comes with a socket library now. It even has a few examples:

You will need to be using 4.0 to make use of any of this though.

Jeremy

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

3. Re: [wxEuphoria] socket client/server

I'm using 3.1.1 right now. I'm uncofortable going to 4.0 while it is in alpha stage. I'm a novice programmer and the 4.0 is not well documented right now, so I decided to stay in 3.1.1 until the 4.0 final release.

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

4. Re: [wxEuphoria] socket client/server

or would I migrate to 4.0?

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

5. Re: [wxEuphoria] socket client/server

xfox26 said...

I'm using 3.1.1 right now. I'm uncofortable going to 4.0 while it is in alpha stage. I'm a novice programmer and the 4.0 is not well documented right now, so I decided to stay in 3.1.1 until the 4.0 final release.

Probably a good thing to stick with 3.1.1 until we get a few more things worked out. No sense in wondering "Did I do something wrong or is this a bug in 4.0?"

Jeremy

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

6. Re: [wxEuphoria] socket client/server

xfox26 said...

or would I migrate to 4.0?

In my option it would much easier to learn
to use version 4.0 than to UNlearn version 3.11 later

It should not be any problem as long as you
are not using any old code from the archive.

You can always ask questions on this forum about version 4.0

Bernie

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

7. Re: [wxEuphoria] socket client/server

xfox26 said...

I'm developing a chat client/server for "tabletop rpg" over internet.

I started using the Ray Smith's Eulibnet, but it is very limited and unstable. So I wanted to give a try on wxEuphoria's socket, and I had no clue on how to start.

Can anyone please write a simple server and a client in wxEuphoria, so I can learn from this example.

Sorry for my bad english and thanks in advance.

Take a look at the client.exw and server.exw demos that come with wxEuphoria. They demonstrate a very simple way to send data.

Matt

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

8. Re: [wxEuphoria] socket client/server

Matt, the demo gives a "machine level exeption" error when the client tries to connect.

I executed the server, it opens its window. When I execute the client, the server stop and give the "machine level exeption".

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

9. Re: [wxEuphoria] socket client/server

xfox26 said...

Matt, the demo gives a "machine level exeption" error when the client tries to connect.

I executed the server, it opens its window. When I execute the client, the server stop and give the "machine level exeption".

Do you have v0.12.2? Versions prior to this are known not to work.

Matt

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

10. Re: [wxEuphoria] socket client/server

xfox26 said...

Matt, the demo gives a "machine level exeption" error when the client tries to connect.

I executed the server, it opens its window. When I execute the client, the server stop and give the "machine level exeption".

I used the latest wxEuphoria library 12-2a and did the same procedure in Windows (Vista). There was no problem. After starting the client.exw there is a message: Connection: #00398EB8 in the server window. After keying Hello and clicking the button: Send data via Sockets there is a message: (#00398EB8): "Hello" in the server window. This worked for me with the alpha release of Eu 4.0 and Eu 4.0 rev 1419.

Roland

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

11. Re: [wxEuphoria] socket client/server

Sorry I forgot to mention that the client/server demo worked with Eu 3.1.1 too.

Roland

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

12. Re: [wxEuphoria] socket client/server

Ops... Because a lack of attention I was using v0.12.1, updated to v0.12.2 and the demos worked perfectly.

Thanks to everybody

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

Search



Quick Links

User menu

Not signed in.

Misc Menu