Whenever I sent a message to the server with my client, my server doesn't recieve anything.
mfa : http://www.solcon.nl/s.tennapel/nserver.mfa
Printable View
Whenever I sent a message to the server with my client, my server doesn't recieve anything.
mfa : http://www.solcon.nl/s.tennapel/nserver.mfa
That's not what "On server message" does - "On server message" is triggered when the client receives a message sent by the server.
You can't currently interact with a server hosted from MMF2. It will function as a generic OINC server, but that's about it.
Is it in the plans to allow for server-client interaction?
There is server-client interaction.. that's the fundemental basis of any protocol. The only thing you can't do right now is write an "intelligent" server in MMF2.
Oke thanks, can I interact with a server hosted from a python server?
You can indeed code your own "intelligent" OINC server in Python (see Poinc).
I think our lovely DizzyDoo might post up a tutorial on how to do so ;)
Oke thanks!
I beg to differ. Global Events exist for a reason, rawrQuote:
Originally Posted by Jamie
I... don't have a clue how Global Events will help create an intelligent server. Perhaps you meant Poinc? Oh wait, Poinc isn't MMF2, it's Python.Quote:
Originally Posted by Redsonic
perhaps if you defined what an 'intelligent' server is i could see if it wasn't already possible via global events?
A server that would disconnect ou if you didn't identify as a registered user, from a database or example. Or any server-side action.
The only thing a MMF OINC Server can do at the moment is create channels, receive messages and send them to other clients... all the generic stuff, nothing you can customize.
In my opinion, if someone wants to do something like that, they're better off coding it in Python using Poinc (my preferred choice for this as it's so easy to do :) ) or C++ using the OINC C++ library. Doing it in MMF would IMHO lead to unstable and cluttered code.
... just my few cents ;)
It will probably eventually be possible in MMF2, but it's really not a high priority. I think it would be more appropriate to have a set of tutorials and premade servers for the likes of POINC.