bump aemu_postoffice

- various bug fixes
- allow disabling enet when creating relay and adhocctl server objects
- pdp_peek_next_size can now be used to check whether a pdp session has no packet or an upcoming 0 size packet
This commit is contained in:
Katharine Chui committed 2026-11-01 22:43:24 +01:00
1 parent d0cb768568
commit 13efba30c6
3 files changed
+8 -3

No files matched your search

+5 -2
View File
@@ -759,13 +759,16 @@ static bool postoffice_can_recv_or_listen_has_request(int idx) {
if (pdp_handle == NULL) {
return false;
}
int peek_len = pdp_buffered_data_size(pdp_handle);
int peek_len = pdp_peek_next_size(pdp_handle);
if (peek_len == AEMU_POSTOFFICE_CLIENT_SESSION_DEAD) {
internal->postofficeHandle = NULL;
pdp_delete(pdp_handle);
return false;
}
if (peek_len > 0) {
if (peek_len == AEMU_POSTOFFICE_CLIENT_SESSION_WOULD_BLOCK) {
return false;
}
if (peek_len >= 0) {
return true;
}
}
+2
View File
@@ -1757,6 +1757,8 @@ void __NetAdhocInit() {
config.num_threads = 0;
// The port the relay client connects to.
config.port = AEMU_POSTOFFICE_PORT;
// Disable ENet until the adhocctl side is ready
config.enable_enet = false;
aemu_postoffice_server::Server relay_server(config);
if (relay_server.pump() == aemu_postoffice_server::ServerPumpStatus::LISTEN_SOCK_DEAD) {