DEVICE: Socket Device supports TCP and UDP communication [16877]

Follow
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request
Return to top

Comments

4 comments

  • Avatar
    Kamil Kanas

    How to write a byte to socket device?

    Any examples?

    Thanks,

     

     

    0
    Comment actions Permalink
  • Avatar
    David McFarlane

    I think the sentence should read, "The first solution is to write a custom DLL to call from E-Basic Script."  E-Prime is not capable of producing .dll files at all, it can only call DLL functions developed using another platform such as C or C++.

    0
    Comment actions Permalink
  • Avatar
    David McFarlane

    I can send data from E-Prime via either UDP or TCP, but cannot receive data via either protocol.  In particular, I cannot start a TCP sender until E-Prime is ready to receive, and E-Prime will not run at all if something is not already running at the port for the Socket device, so it's a bit of a chicken & egg problem.  What tests did PST run to verify that the Socket device can receive data, and how could we duplicate those tests ourselves?

    0
    Comment actions Permalink
  • Avatar
    David McFarlane

    Aha, I can get the Socket device to receive TCP packets if I first start a listener (e.g., with netcat), then I can send data from the external "listener" back to E-Prime.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk