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
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sharpbai
Copy link

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
Owner

rd235 commented Oct 15, 2018 via email

@sharpbai
Copy link
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
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