I have a p2p game. One person runs the server, and everyone
the server with a client. Players can send images to each
other. I want
the client to recognize when it is being sent an image and
progress of the transfer (standard % complete type of
The clients make 2 connections to the server (ie 2 instances
xtra). One is used to send/receive various messages, the
send/receive images. I think I can use this to accomplish
what I want.
Just hoping someone might let me know if I am going down the
My idea is that when one client wants to send an image to the
notifies the other clients telling them how large the image
is. Then it
periodically uses getNetOutgoingBytes() to see how many bytes
in the outgoing message buffer, so that it can update the
(through the other connection) as to the progress.
> Which method are you using to send the files between
I'm not sending files, I use sendNetMessage() to send the
media of a
cast member. A message handler on the client receives this
and sets the
media property of a placeholder member to what was received.
Depending on the size of the graphics and the users internet
this can sometimes take a little time. I want the sender and
to be able to see the progress of this transfer.