hi everyone.
My problem in short words: I have an amazing mud mapper (written in python, available at https://github.com/michael-donat/tf-mapper , this is not my doing!) that uses TCP connection to pass the information between mapper and mud. Now, one way communication is pretty straight forward: when i send data to mapper it reacts immidiately. But it also sends notifications to MUD (for instance about non standard commands to exit a location). How can i react on received message in real time? in other words, how can i wait async for the message?
Im asking in a LUA thread although i'll be happy with solution with almost any language, i tackled this problem once before with python, no success. i even tried creating a rest api for my mapper but performance was not good enough.
and i remember reading somewhere that Nick is fan of callbacks and asyncs vs threads so i dont expect to be able to just spawn new thread.
if im not clear please let me know, also forgive my ignorance, i come from java world ;)
thanks
My problem in short words: I have an amazing mud mapper (written in python, available at https://github.com/michael-donat/tf-mapper , this is not my doing!) that uses TCP connection to pass the information between mapper and mud. Now, one way communication is pretty straight forward: when i send data to mapper it reacts immidiately. But it also sends notifications to MUD (for instance about non standard commands to exit a location). How can i react on received message in real time? in other words, how can i wait async for the message?
Im asking in a LUA thread although i'll be happy with solution with almost any language, i tackled this problem once before with python, no success. i even tried creating a rest api for my mapper but performance was not good enough.
and i remember reading somewhere that Nick is fan of callbacks and asyncs vs threads so i dont expect to be able to just spawn new thread.
if im not clear please let me know, also forgive my ignorance, i come from java world ;)
thanks