Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Network
»
I can send any type of structure?
Print
Pages: [
1
]
Author
Topic: I can send any type of structure? (Read 3413 times)
0 Members and 1 Guest are viewing this topic.
exafi
Newbie
Posts: 41
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
exafi
Newbie
Posts: 41
Re: I can send any type of structure?
«
Reply #2 on:
March 21, 2013, 01:47:39 am »
ok ty =D
Logged
exafi
Newbie
Posts: 41
Re: I can send any type of structure?
«
Reply #3 on:
March 24, 2013, 11:52:28 am »
SFML network works very good
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Network
»
I can send any type of structure?