Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I can send any type of structure?  (Read 3293 times)

0 Members and 1 Guest are viewing this topic.

exafi

  • Newbie
  • *
  • Posts: 41
    • View Profile
I can send any type of structure?
« on: March 20, 2013, 06:55:44 pm »
Hi i have a doubt,  I can send any type of structure?
example.

send(map,24);

=D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: I can send any type of structure?
« Reply #1 on: March 20, 2013, 08:43:31 pm »
You can only send a byte array, nothing can magically handle your custom structures. So you have to serialize your data.
Laurent Gomila - SFML developer

exafi

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: I can send any type of structure?
« Reply #2 on: March 21, 2013, 01:47:39 am »
ok ty =D

exafi

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: I can send any type of structure?
« Reply #3 on: March 24, 2013, 11:52:28 am »
SFML network works very good


 

anything