Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

A sample socket app you can telnet into
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Sample socket application (telnet)
  • SDP: 6.4.1
  • Target: Any supported target
________________________________________________________________________

Recommendation
________________________________________________________________________

Please find:
--------------------------------------
My box:
/root# uname -a
QNX Donnerstag 6.4.1 2009/05/20-17:35:56EDT x86pc x86

compiling telnetme.c with socket lib

/root# qcc telnetme.c -o telnetme -lsocket

running:
/root# ./telnetme
Server listening...
--------------------------------------

Take any other machine in your network.

In my case it is
# uname -a
QNX qnx65box 6.5.0 2010/07/09-14:44:03EDT x86pc x86
#

telnet ipaddress-qnxbox-where-telnetme-is-running 3333
type something and press enter.
Telnetme will accept and write the data you type in back to the socket.

telnet ipaddress-qnxbox-where-telnetme-is-running 3333
Trying X.X.X.X

Escape character is '^]'.
lala
>>> lala
blahblah
>>> blahblah

Enjoy.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 Attachment Name Size Last Modified
 telnetme.c 1496 bytes 8/23/2012 3:51 PM





Please contact us with your questions or concerns.