Re: socketpair(2) strange behavior
- From: Alberto Rizzi <greenant@xxxxxxxxxxx>
- Date: Sun, 18 Jun 2006 09:07:20 +0200
Tofik Suleymanov ha scritto:
Hello list,Maybe you have to change
when using socketpair(2) on my FreeBSD 6.1-RELEASE-p1 box i get this
error:
"socketpair: Operation not supported"
And here is the source of my pretty simple socketpair(2) program:
---- START ----
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <errno.h>
int main(void) {
int sv[2], err;
err = socketpair(AF_INET, SOCK_STREAM, 0, (int*)&sv);
if(err == -1) {
perror("socketpair");
return -1;
}
return 0x0;
}
---- END ----
Any comments ?
Sincerely,
Tofik Suleymanov
(int*) &sv
with
sv
because &sv returns an int**, not int*
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- socketpair(2) strange behavior
- From: Tofik Suleymanov
- socketpair(2) strange behavior
- Prev by Date: Re: BTX halted
- Next by Date: Re: FreeBSD equivalent to DRBD
- Previous by thread: Re: socketpair(2) strange behavior
- Next by thread: Library Dependency: package built from port
- Index(es):
Relevant Pages
|