[time-nuts] Prologix GPIB-ETH - Linux examples ?

Azelio Boriani azelio.boriani at screen.it
Mon Jan 30 15:48:57 EST 2012


Interesting, I've downloaded and taken a look at the example and noted how
the Prologix doesn't use the Remote Procedure Call (RPC) method but a
simple telnet-like connection. Follow Orin's directions to convert from
WINSOCK to Linux-style socket calls. Maybe you should first take a look how
to open a simple TCP connection under Linux and you'll find the system
calls pointed out by Orin.

On Mon, Jan 30, 2012 at 9:28 PM, Orin Eman <orin.eman at gmail.com> wrote:

> On Mon, Jan 30, 2012 at 11:23 AM, cfo <xnews2 at luna.kyed.com> wrote:
>
> > I just got my Prologix GPIB-ETH
> >
> > I am 90% Linux Ubuntu based , and would like to get 99% based.
> > So i am looking for some C code examples, implementing the linux
> > networking part.
> >
> > I have sen the Prologix example C/C+ , but it's WINSOCK.
>
>
>
> There's hardly any difference between Linux sockets and WINSOCK as far as
> that example code goes.
>
> Remove the WSAStartup/WSACleanup calls, change sprintf_s to sprintf,
> WSAGetLastError() to errno, SOCKET to int and you should be done.  That's
> the easy part.
>
> The hard part is handling timeouts as the Prologix doesn't give any
> indication if a ++read timed out.
>
> Orin.
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to
> https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
>



More information about the time-nuts mailing list