1. [wxEuphoria] socket client/server
- Posted by xfox26 Mar 06, 2009
- 978 views
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.
2. Re: [wxEuphoria] socket client/server
- Posted by jeremy (admin) Mar 06, 2009
- 985 views
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
3. Re: [wxEuphoria] socket client/server
- Posted by xfox26 Mar 06, 2009
- 1063 views
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.
4. Re: [wxEuphoria] socket client/server
- Posted by xfox26 Mar 06, 2009
- 965 views
or would I migrate to 4.0?
5. Re: [wxEuphoria] socket client/server
- Posted by jeremy (admin) Mar 06, 2009
- 970 views
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
6. Re: [wxEuphoria] socket client/server
- Posted by bernie Mar 06, 2009
- 957 views
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
7. Re: [wxEuphoria] socket client/server
- Posted by mattlewis (admin) Mar 06, 2009
- 953 views
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
8. Re: [wxEuphoria] socket client/server
- Posted by xfox26 Mar 06, 2009
- 956 views
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".
9. Re: [wxEuphoria] socket client/server
- Posted by mattlewis (admin) Mar 06, 2009
- 959 views
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
10. Re: [wxEuphoria] socket client/server
- Posted by RStowasser Mar 06, 2009
- 957 views
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
11. Re: [wxEuphoria] socket client/server
- Posted by RStowasser Mar 06, 2009
- 970 views
Sorry I forgot to mention that the client/server demo worked with Eu 3.1.1 too.
Roland
12. Re: [wxEuphoria] socket client/server
- Posted by xfox26 Mar 06, 2009
- 929 views
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