Author Topic: ID of the client/server sending a message  (Read 3553 times)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1750
    • View Profile
    • Homepage
It would be nice with an ID so you know who sent what message without having to believe the client that sent the message. For example in a chat it's easy to say that some other client sent a chat message but just altering the message sent.

"Moru: Blablabla" - realy sent from "haxor" guy

Also some way of noticing when a client disconnected or to kick a client.

Some way of setting what port the server is listening on and ofcourse the client needs to know what port to connect to if it's not the standard port.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10656
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: ID of the client/server sending a message
« Reply #1 on: 2008-Oct-27 »
What does NETGETSENDER$ do? I'm not sure anymore.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1578
  • Particle Hawk
    • View Profile
Re: ID of the client/server sending a message
« Reply #2 on: 2008-Oct-28 »
NETGETSENDER$ sends a unique ID, which is set by NETGETPLAYERS if im not mistaking.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)