Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - TCP/IP Socket listener: (8 Items)
   
TCP/IP Socket listener  
Hi

It there a tutorial for the QnX 6.5 to Code a simple Socket listener using TCP/IP?

I already have the server side up I just need to know more about the libraries QnX uses.
A tutorial would be great!

Thanks and kind regards.
cart
Re: TCP/IP Socket listener  
I am using C and I dont have the QnX library so I code in Eclipse in windows.

Thanks!
Re: TCP/IP Socket listener  
It is standard Posix API. Any tutorial online will be applicable.
Re: TCP/IP Socket listener  
Apparently the QnX Libraries are bare minimum.

For instance my "sys/socket.h" in QnX doesn't have the "socketpair" function.
SO even a basic tutorial written for QnX wont work.

Any idea?
Re: TCP/IP Socket listener  
You're running an ancient version of qnx. socketpair() has been available for ‎a long time.

-seanb

Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message
From: Cart Mc'Cormick
Sent: Tuesday, June 3, 2014 3:24 AM
To: momenticsgs-community
Reply To: momenticsgs-community@community.qnx.com
Subject: Re: TCP/IP Socket listener


Apparently the QnX Libraries are bare minimum.

For instance my "sys/socket.h" in QnX doesn't have the "socketpair" function.
SO even a basic tutorial written for QnX wont work.

Any idea?



_______________________________________________

QNX Momentics Getting Started
http://community.qnx.com/sf/go/post110559
To cancel your subscription to this discussion, please e-mail momenticsgs-community-unsubscribe@community.qnx.com
Re: TCP/IP Socket listener  
OK so wit this basic tutorial of UNIX 

http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/WindowsSockets.pdf

If I compile in QnX6.5 I get the following error.

UNixHeader.o: In function `main':
UNixHeader.c:(.text+0x92): undefined reference to `socket'
UNixHeader.c:(.text+0x10e): undefined reference to `connect'
UNixHeader.c:(.text+0x154): undefined reference to `send'
UNixHeader.c:(.text+0x1a2): undefined reference to `recv'
cc: /usr/qnx650/host/qnx6/x86/usr/bin/ntox86-ld error 1


As you can see they are pretty normal functions that it can refers too..Why cant it compile ?
I use " cc -o xxx xxx.c "

I have tried to UNspaghetti it from the tutorial  but got exactly the same results:/
Re: TCP/IP Socket listener  
I didnt compile the program with -socket  -.-

Re: TCP/IP Socket listener  
You need to link against libsocket.

Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message
From: Cart Mc'Cormick
Sent: Thursday, June 5, 2014 2:06 AM
To: momenticsgs-community
Reply To: momenticsgs-community@community.qnx.com
Subject: Re: TCP/IP Socket listener


OK so wit this basic tutorial of UNIX

http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/WindowsSockets.pdf

If I compile in QnX6.5 I get the following error.

UNixHeader.o: In function `main':
UNixHeader.c:(.text+0x92): undefined reference to `socket'
UNixHeader.c:(.text+0x10e): undefined reference to `connect'
UNixHeader.c:(.text+0x154): undefined reference to `send'
UNixHeader.c:(.text+0x1a2): undefined reference to `recv'
cc: /usr/qnx650/host/qnx6/x86/usr/bin/ntox86-ld error 1


As you can see they are pretty normal functions that it can refers too..Why cant it compile ?
I use " cc -o xxx xxx.c "

I have tried to UNspaghetti it from the tutorial  but got exactly the same results:/



_______________________________________________

QNX Momentics Getting Started
http://community.qnx.com/sf/go/post110595
To cancel your subscription to this discussion, please e-mail momenticsgs-community-unsubscribe@community.qnx.com