Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posix Net #1956

Closed
wants to merge 23 commits into from
Closed

Posix Net #1956

wants to merge 23 commits into from

Conversation

georgemoralis
Copy link
Collaborator

Very initial , just for view

@georgemoralis georgemoralis marked this pull request as draft December 28, 2024 20:13
return 0;
}
u32 PS4_SYSV_ABI posix_htonl(u32 hostlong) {
return htonl(hostlong);
Copy link
Contributor

@mailwl mailwl Dec 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may you add ::, for global scope, like ::htonl. it shows we use native OS functions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

return htons(hostshort);
}
int PS4_SYSV_ABI posix_bind(int sockfd, const struct sockaddr* addr, socklen_t addrlen) {
return 0;
Copy link
Contributor

@mailwl mailwl Dec 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think, no need such stubbed funcs leave silent, at least, add LOG_TRACE, or LOG_DEBUG, for info

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it is still in progress will have logging soon


namespace Libraries::Kernel {
int PS4_SYSV_ABI posix_socket(int domain, int type, int protocol);
int PS4_SYSV_ABI posix_connect(int sockfd, const struct sockaddr* addr, socklen_t addrlen);
Copy link
Contributor

@mailwl mailwl Dec 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure, if struct sockaddr is crossplarform, maybe explicit use OrbisNetSockaddr, and convert to win/mac/linux sockaddr inside?
do not remember if these structs equals

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@georgemoralis georgemoralis force-pushed the net branch 5 times, most recently from 4e72784 to bad2b88 Compare January 2, 2025 21:31
@georgemoralis
Copy link
Collaborator Author

peggle2 seems to work here

@Hermiten
Copy link
Collaborator

Hermiten commented Jan 3, 2025

Can maybe fix this game also:
shadps4-emu/shadps4-game-compatibility#1673
[Lib.Net] net.cpp:sceNetSendto:929: (STUBBED) called

@C0rn3j
Copy link
Contributor

C0rn3j commented Jan 3, 2025

@georgemoralis As someone with an interest in Peggle 2 running, could you say why was this PR closed?

@polybiusproxy
Copy link
Collaborator

@georgemoralis was testing Peggle and he lost so he closed the PR out of anger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants