aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
authorauth <[email protected]>2020-07-18 03:14:23 +0200
committerauth <[email protected]>2020-07-18 03:14:23 +0200
commit0a11963b4a510f212645c68fb92dd114ec2ce427 (patch)
tree9dc7c12f02e7096f7ea903882581b0bfd0b70373 /server/src/main.cpp
parentRefactoring. (diff)
downloadloader-0a11963b4a510f212645c68fb92dd114ec2ce427.tar.xz
loader-0a11963b4a510f212645c68fb92dd114ec2ce427.zip
More placeholders and general plan.
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 81de12e..fe0d602 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));
});