Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: nah0y on May 26, 2014, 10:42:24 AM

Title: tno.Send VS tno.BroadcastToLAN
Post by: nah0y on May 26, 2014, 10:42:24 AM
Hello,

Can you tell me what's the difference between these two?

Thx.
Title: Re: tno.Send VS tno.BroadcastToLAN
Post by: ArenMook on May 27, 2014, 12:11:10 AM
tno.Send goes to the channel or target player.

tno.BroadcastToLAN goes via UDP to everyone who's listening to the specified port, whether they are connected or not. Think server discovery.
Title: Re: tno.Send VS tno.BroadcastToLAN
Post by: nah0y on May 27, 2014, 12:18:40 AM
OK so :
- tno.SendBroadcast for server discovery.
- tno.Send(Target.Broadcast) for RFC call when not on same channel
- tno.Send(Target.X) otherwise

Right?
Title: Re: tno.Send VS tno.BroadcastToLAN
Post by: ArenMook on May 28, 2014, 07:54:43 AM
Yup. Target.Broadcast is for things like server-wide chat.