mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
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:
1 parent
d0cb768568
commit
13efba30c6
3 files changed
+8
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+1
-1
Submodule ext/aemu_postoffice updated: 89df7297a8...0b2d4e14e3.
Reference in new issue
Block a user