pumpnet: Add prinet-proxy application

Sits between the game (client) and pumpnet (server) translating
the game's native protocol to more managable http requests.

Encryption and decryption is also taken care off to remove that
burden from the server side. This makes http requests as generic as
"game version X is sending some data. here, go and figure out what
to do" on the server side.
This commit is contained in:
icex2
2021-01-17 01:34:23 +01:00
parent 506abe92da
commit 986571a513
11 changed files with 531 additions and 2 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
add_subdirectory(client)
add_subdirectory(lib)
add_subdirectory(lib)
add_subdirectory(prinet-proxy)
@@ -0,0 +1,16 @@
project(pumpnet-prinet-proxy)
message(STATUS "Project " ${PROJECT_NAME})
set(SRC ${PT_ROOT_MAIN}/pumpnet/prinet-proxy)
add_resources(PRI_PRIVATE_KEY ${SRC} prime.private.key)
add_resources(PRI_PUBLIC_KEY ${SRC} prime.public.key)
set(SOURCE_FILES
${SRC}/main.c
${SRC}/options.c
${SRC}/packet.c)
add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${PRI_PRIVATE_KEY} ${PRI_PUBLIC_KEY})
target_link_libraries(${PROJECT_NAME} pumpnet-lib sec-prinet util)