Send Data
Description
FMNetworkManager is required, when you are executing below commands.
Example functions of sending string message
Example functions of sending string message
string Message = "Hello World";
//send the message to everyone including sender
FMNetworkManager.instance.SendToAll(Message);
//send the message to others
FMNetworkManager.instance.SendToOthers(Message);
//send the message to Server
FMNetworkManager.instance.SendToServer(Message);
//send the message to target IP address
FMNetworkManager.instance.SendToTarget(Message, "127,0,0,1");
Example functions of sending byte array
string Message = "Hello World";
//send the message to everyone including sender
FMNetworkManager.instance.SendToAll(Message);
//send the message to others
FMNetworkManager.instance.SendToOthers(Message);
//send the message to Server
FMNetworkManager.instance.SendToServer(Message);
//send the message to target IP address
FMNetworkManager.instance.SendToTarget(Message, "127,0,0,1");