User Tag List

Results 1 to 8 of 8

Thread: Question about lacewing about channel/peer/server message?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about lacewing about channel/peer/server message?

    In wich cases we send messages to channel/peer/server?
    Can someone tellme an exemple of each case? thanks!

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump, any one can explainme when to use each case?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    659
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Send Message to Channel: When you want Peers in the same channel to receive the message,
    One use of it would be a Chat app, you send messages for people to see.

    Send Message to Peer: When you directly want to send a message to Peer,
    One use of it would be sending that you've hurt the peer, making them lose health on their end.
    Another use would be a direct private message, away from the channel.

    Send Message to Server: When you directly want to send a message to the Server, where other people probably won't see
    One use of it would be login authentication.

    Sends vs Blasts

    Sent messages travel through UDP, therefore they will be received in the same order that you've sent them and will always reach the target, however, it's quite slow.

    Blasted messages travel through TCP, therefore they can be received scrambled up or modified, they can also be lost along the way. They are much faster though.
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BartekB View Post
    Send Message to Channel: When you want Peers in the same channel to receive the message,
    One use of it would be a Chat app, you send messages for people to see.

    Send Message to Peer: When you directly want to send a message to Peer,
    One use of it would be sending that you've hurt the peer, making them lose health on their end.
    Another use would be a direct private message, away from the channel.

    Send Message to Server: When you directly want to send a message to the Server, where other people probably won't see
    One use of it would be login authentication.

    Sends vs Blasts

    Sent messages travel through UDP, therefore they will be received in the same order that you've sent them and will always reach the target, however, it's quite slow.

    Blasted messages travel through TCP, therefore they can be received scrambled up or modified, they can also be lost along the way. They are much faster though.
    Thanks bro!!! , I have the last question, if you have your own server you should do all sending messages to server and server sending messages to targets?

  6. #6
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    659
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    All types of messages go to the server, except:

    Channel messages = Message gets sent to the channel, everyone in it receives it
    Peer messages = Message gets sent to the person, he only receives it
    Server messages = Message gets sent to the server, the server app only receives it


    Therefore, no matter what message you send, it will be sent to the server and redirected to the appropriate place, it is just how other people can receive that message.

    tl;dr: No, the messages you send are basically where you want them to go (Server, or to channel, or to peer / person)
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BartekB View Post
    All types of messages go to the server, except:

    Channel messages = Message gets sent to the channel, everyone in it receives it
    Peer messages = Message gets sent to the person, he only receives it
    Server messages = Message gets sent to the server, the server app only receives it


    Therefore, no matter what message you send, it will be sent to the server and redirected to the appropriate place, it is just how other people can receive that message.

    tl;dr: No, the messages you send are basically where you want them to go (Server, or to channel, or to peer / person)
    Thanks for all I understand it now, I was doing all my apps trought server and I guess why they collapse sometimes when I have to much instances blasting messages

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also considder dead reconing instead of sending loads of messages to uppdate moving objects positions:
    https://en.wikipedia.org/wiki/Dead_reckoning

    I short this means:
    if object is moving to the right, send one this 1 message to the server until there is a change in direction/ speed/ movement for the Object.

Similar Threads

  1. Bounching Peer from Channel?
    By ZayLong in forum Lacewing
    Replies: 6
    Last Post: 14th April 2011, 08:46 AM
  2. [C++]Lacewing Server, Send to Channel
    By Greg in forum Lacewing
    Replies: 7
    Last Post: 18th July 2010, 11:42 PM
  3. [idea]Peer/Self Channel ID
    By LB in forum Lacewing
    Replies: 4
    Last Post: 8th June 2010, 04:11 PM
  4. Send Message - to Peer
    By RickyRombo in forum Lacewing
    Replies: 5
    Last Post: 20th April 2009, 10:31 PM
  5. OINC Bug? Peer in Channel
    By Mayfly in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th February 2009, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •