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

#'make-socket-pair error with datagram sockets #15

Open
resttime opened this issue Aug 31, 2014 · 1 comment
Open

#'make-socket-pair error with datagram sockets #15

resttime opened this issue Aug 31, 2014 · 1 comment

Comments

@resttime
Copy link

'make-socket-pair doesn't work when you try to set the set the type as a datagram socket.

Fix#1: Just adding the slots to the 'socket-datagram-local class definition that won't initialize.

Fix#2: Add a parent class 'active-socket or 'passive-socket which include those slots to the 'socket-datagram-local class.
According to http://publib.boulder.ibm.com/infocenter/zvm/v6r1/topic/com.ibm.zvm.v610.edclv/socket.htm
datagram sockets don't have active or passive component to it.

Fix#3: Remove the initializers from the arguments list whenever
using a local datagram socket in the #'create-socket function. I'm not sure whether this breaks functionality.

I'm not sure what the implications are when doing any of the ways, only that i makes the errors go away.

@sionescu
Copy link
Owner

Hi @resttime, I'll have to investigate this a little. AFAICT socketpair(2) only supports the AF_UNIX/SOCK_STREAM combo.

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

No branches or pull requests

2 participants