From 3160d63c696612f460e5d0ebe1eb4dfb2bb3e5a1 Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sun, 6 Jul 2014 23:32:57 +0200 Subject: Add IPC: Manaplus now accepts connections on the 44007 port. * Uses SDL_Net/SDL_Thread. * Port can be changed with envvar IPC_PORT. * Default port is first checked then incremented until one is available. * start on demand with /ipctoggle (shuts down server socket) It has a simple text protocol: TYPE arg1 [args]... Message types: * CMD: execs a command supported by manaplus, e.g /emote * LTALK: talks in general tab * TALK: talks in current focused tab * [TODO] KEY: do as if the KEY was pressed on keyboard --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 39780b5bd..2c45c6dcb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -616,6 +616,8 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ net/generalhandler.h \ net/guildhandler.h \ net/inventoryhandler.h \ + net/ipc.cpp \ + net/ipc.h \ net/ea/inventoryitem.h \ net/logindata.h \ net/loginhandler.h \ -- cgit v1.2.3-60-g2f50