0

Can the sf::Packet class of SFML-network be ported over to arduino for use with the Ethernet library or would it be too big? I'm working on a client-program where an arduino is a server and a regular computer is the client making a request. I'm using the SFML-network library to make networking easier on myself and would prefer to use the built in features of SFML to make networking easier. If it is not feasible would I be better off using fixed width data to communicate with the arduino

0

Without knowing how it all works, my guess is that you would have to port the whole of SFML, which would be HUGE. So, "No!" is the answer.

You could, of course, write a library of your own that had an SFML-like interface, but the Arduino networking libraries are already pretty simplistic and easy to use, so what's the point?

2
  • I'm sending complex packets that must be deconstructed in a specific way. So I would prefer to have a way to send and receive data in such a way that it will always be the same. – HSchmale Jun 15 '15 at 21:16
  • That's what structs are for. – Majenko Jun 15 '15 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.