printf("Could not get ID
for kernel control. %d\n",
err);
return(err);
}
addr.sc_id
= info.ctl_id;
addr.sc_unit = 0;
then it does a connect:
result = connect(fd, (struct sockaddr
*)&addr,
sizeof(addr));
with no error reported.
However, the
EPHandleConnect routine is never called, and when I try
getsockopt and setsockopt, they don't seem to reach the kext either. I
wonder if I am setting the the sc_id in the addr struct
correctly.
Has anyone made this sample code work? I'm suspicious of it
because of a number of typos I found.
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden
This email sent to email@hidden