aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index 6350179..df3f6e8 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -169,6 +169,20 @@ int main(int argc, char* argv[]) {
}
}
+ if (id == tcp::packet_id::game_select) {
+ // select image
+ // set message to be pe header
+ // stream imports
+ // wait for client to send back a packet with allocation base and fixed imports
+ }
+
+ if (id == tcp::packet_id::image) {
+ // message contains allocation base
+ // fixed imports are streamed back/save them in a folder to see if anything went wrong
+ // stream back the fixed image
+ // set client status or just drop them
+ }
+
client.write(tcp::packet_t(message, tcp::packet_type::write, session));
});