Original Post
Hi all.
Here''s the deal. I developped 2 applications for a network game : one client and one server. The server is a standard TCP/IP Socket Server and the clients send commands through socket to communicate with the server.
Each client can customise his skin and chooses a file (avatar) to represent himself. But the other clients will only be able to see this skin if they download the file.
So i started by saying that the file would be sent to the server and the server would then broadcast this file to the other clients, but i am afraid that this might be too heavy for network or internet and i don''t have an idea how to organise all this... I am looking for an algorithm or a plan or something like that which would optimise the data exchange through the network and help me see clear. I started to code this method but it seems to not be a good solution : for exemple every time a client connects and sends his skin to the server, the server will have to send the file to all the clients ???
Thanx for ideas.
pHeAr
http://phear.fr.st