PDA

View Full Version : DXPlay



Jonne
20-12-2004, 09:41 PM
I have host and client. On host I send messages with this:
DXPlay1.SendMessage(DPID_ALLPLAYERS,msg,msgsize);

How to send message from client to host?

BojZ
04-02-2005, 08:10 PM
Hi!

Well as far as I know DPID_ALLPLAYERS send a message to all players, setting the "to" field instead of DPID_ALLPLAYERS to 1..x sends the message to that player, relative to the client's DXPlay1.PLAYERS list.

Note that the server and the clients have different lists, so sending to 1 could mean you are sending the message to host from example client1, but from client4 it would send the message to client2.

Hope that helps.

Now here's what you can do in return. Should you come accorss how to send a file using DXPlay please let me know. I don't want to send files around with Indy.

TnX!

BojZ