Skip to content
This repository was archived by the owner on Oct 25, 2020. It is now read-only.

chore(macOS): fix compile and running error for macOS#6

Open
sharpbai wants to merge 4 commits intord235:masterfrom
sharpbai:master
Open

chore(macOS): fix compile and running error for macOS#6
sharpbai wants to merge 4 commits intord235:masterfrom
sharpbai:master

Conversation

@sharpbai
Copy link
Copy Markdown

macOS do not support SCTP protocol and SOCK_CLOEXEC flag. So I have changed SCTP to TCP protocol and set SOCK_CLOEXEC to 0 for macOS.

@rd235
Copy link
Copy Markdown
Owner

rd235 commented Oct 15, 2018 via email

@sharpbai
Copy link
Copy Markdown
Author

sharpbai commented Oct 27, 2018

I have changed SOCK_STREAM to SOCK_DGRAM to ensure packet boundary. The socket buffer have been changed in order to avoid packet loss for udp socketpairs. The SOCK_CLOEXEC flag have also been set using fcntl.

@sharpbai
Copy link
Copy Markdown
Author

I forgot to change back SOCK_CLOEXEC value for macOS. It is correct now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants