in
Creating Smarter Networks

IP Socket Driver FPMs?

Last post 06-05-2008 12:39 PM by mrusso. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-04-2008 6:50 PM

    • mrusso
    • Top 10 Contributor
    • Joined on 05-22-2008
    • Posts 9
    • Points 90

    IP Socket Driver FPMs?

    Hello SmartServer Users,

    The FPM User Guide explains read/write methods for the RS-232 and RS-485 ports, but I've heard a very reliable rumor that FPM Drivers can also be used for reading and writing to the Ethernet port (i.e. sockets).  My question is can FPM Drivers support sockets (or an equivalent)?  The socket.h library in the FPM eclipse SDK doesn't have the socket(), connect(), etc. functions I'm accustomed to, although I've found some interesting ones (socketRtn() from sockFunc.h perhaps?).  Anyway before I start trying to get a socket up and communicating I thought it would be a good idea to check in and ask:  does anyone know the preferred way to program sockets on the SmartServer?  Are there functions similar to rsXXX_open() for IP sockets?  Any documentation or examples would be greatly appreciated.

    -MR

    • Post Points: 5
  • 06-05-2008 12:39 PM In reply to

    • mrusso
    • Top 10 Contributor
    • Joined on 05-22-2008
    • Posts 9
    • Points 90

    Re: IP Socket Driver FPMs?

    Hello SmartServer Users,

    I got a TCP/IP socket going today (hooray!).  The functions I was searching for turned up here:

    #include <arpa/inet.h> //For sockaddr_in and inet_addr()

    #include <sockLib.h> //For socket(), connect(), send(), and recv()

    If anyone knows a better way to use sockets with SmartServers I'd still love to hear about it.

    -MR

    • Post Points: 5
Page 1 of 1 (2 items)
©2008 Echelon Corporation