I was in the process of running some of the code form the book “UNIX Network
Programming” by W,Richard Stevens in which I have come across a
problem/feature.
I can’t seem to find the appropriate libary for socketpair!!
The QRTP docs say use libarys: socket3r.lib and socket3s.lib but these
libarys don’t exist.
I have cut the code out that I would like to test and pasted it below…
Anyone have any idears???
Cheers Ben.
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <time.h>
void Socketpair(int family, int type, int protocol, int *fd){
int n;
if( (n = socketpair(family,type,protocol,fd)) < 0)
printf(“socketpair error\n”);
}
main(){
int fd,sockfd[2], status;
printf(“Attempt a test\n”);
Socketpair(AF_LOCAL,SOCK_STREAM,0,sockfd);
}
In qdn.public.qnxrtp.os Benjamin Rogers <brogers@nospam.patrick.com.au> wrote:
AF_LOCAL (AF_UNIX) domain sockets are not currently supported but
are in the works.
: I was in the process of running some of the code form the book “UNIX Network
: Programming” by W,Richard Stevens in which I have come across a
: problem/feature.
: I can’t seem to find the appropriate libary for socketpair!!
: The QRTP docs say use libarys: socket3r.lib and socket3s.lib but these
: libarys don’t exist.
Should be libsocket. socket3* sounds like a throwback to QNX4. Where
exactly is the reference?
-seanb
Sean,
I found socketpair in the Neutrino 2.1 online help.
In the Qrtp help it does say to use libsocket.so.
But even when I do I still get a linking error “undefined reference to
socketpair”
I have tried with bothe in Metworwerks and self hosting methods.
Cheers Ben.
“Sean Boudreau” <seanb@qnx.com> wrote in message
news:8ued72$6dv$1@nntp.qnx.com…
In qdn.public.qnxrtp.os Benjamin Rogers <> brogers@nospam.patrick.com.au
wrote:
AF_LOCAL (AF_UNIX) domain sockets are not currently supported but
are in the works.
: I was in the process of running some of the code form the book “UNIX
Network
: Programming” by W,Richard Stevens in which I have come across a
: problem/feature.
: I can’t seem to find the appropriate libary for socketpair!!
: The QRTP docs say use libarys: socket3r.lib and socket3s.lib but these
: libarys don’t exist.
Should be libsocket. socket3* sounds like a throwback to QNX4. Where
exactly is the reference?
-seanb
It should be supported soon, but for now you’ll have to cover it.
In comp.os.qnx Benjamin Rogers <brogers@nospam.patrick.com.au> wrote:
Sean,
I found socketpair in the Neutrino 2.1 online help.
In the Qrtp help it does say to use libsocket.so.
But even when I do I still get a linking error “undefined reference to
socketpair”
I have tried with bothe in Metworwerks and self hosting methods.
Cheers Ben.
“Sean Boudreau” <> seanb@qnx.com> > wrote in message
news:8ued72$6dv$> 1@nntp.qnx.com> …
In qdn.public.qnxrtp.os Benjamin Rogers <> brogers@nospam.patrick.com.au
wrote:
AF_LOCAL (AF_UNIX) domain sockets are not currently supported but
are in the works.
: I was in the process of running some of the code form the book “UNIX
Network
: Programming” by W,Richard Stevens in which I have come across a
: problem/feature.
: I can’t seem to find the appropriate libary for socketpair!!
: The QRTP docs say use libarys: socket3r.lib and socket3s.lib but these
: libarys don’t exist.
Should be libsocket. socket3* sounds like a throwback to QNX4. Where
exactly is the reference?
-seanb
–
cburgess@qnx.com