This is used in server state (mnStartServer)
to send the specified packet via TCP to all connected clients.
Performance note: blocking send operations perform better than non blocking operations. Most noticeable performance differences occur when sending large packets, when sending a large number of packets or when sending to a large number of clients.
int Instance: This is the instance that the command should
use.
long long int Packet: This is the packet that the command should use.
bool Keep_packet: This specifies whether or not the specified
packet should be cleared after it is sent (false) or if it should be
left unchanged (true).
bool Block_until_sent: If this parameter is true the command will block
until the packet has been sent to all currently connected clients. If
this parameter is false the command will return immediately and if the
packet has not yet been sent it will be sent later.
int Client_exclude: This specifies a client to exclude from the send operation. Use this to send to all clients except one. If you want to send to all clients without excluding one, set this parameter to 0.
0 if all packets were sent or will be
sent successfully
-1 if an error occurred when trying to send to any of the currently connected clients. Clients are automatically disconnected if an error occurs. This is done using mnDisconnectClient.
DBP
C++
.Net