-
-
Notifications
You must be signed in to change notification settings - Fork 841
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
Posix Net #1956
Conversation
src/core/libraries/kernel/net.cpp
Outdated
return 0; | ||
} | ||
u32 PS4_SYSV_ABI posix_htonl(u32 hostlong) { | ||
return htonl(hostlong); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
src/core/libraries/kernel/net.cpp
Outdated
return htons(hostshort); | ||
} | ||
int PS4_SYSV_ABI posix_bind(int sockfd, const struct sockaddr* addr, socklen_t addrlen) { | ||
return 0; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
src/core/libraries/kernel/net.h
Outdated
|
||
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
4e72784
to
bad2b88
Compare
peggle2 seems to work here |
Can maybe fix this game also: |
@georgemoralis As someone with an interest in Peggle 2 running, could you say why was this PR closed? |
@georgemoralis was testing Peggle and he lost so he closed the PR out of anger |
Very initial , just for view