Difference between revisions of "Message"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{ParentNav}}
{{ParentNav}}
{{OSWikiLearnBox|parent=Protocol}}
=Messages=
A message is the basic communications unit for the Second Life world. Messages are used to pass serialized information about almost every part of the system back and forth between two hosts on a network, through connections known as [[circuits]].
There are many hundreds of messages in the Second Life message system. A list of them is available at [[category:messages]].


=Message Format=
=Message Format=
Messages are defined in the [[Message Template]]. They follow the format:
<pre width=80>
{
[Message Name] [Message Frequency] [Message Trust Level] [Message Encoding]
{
[Block 1 Name] [Block 1 Quantity] [Block 1 Count]
{ [Block 1 Parameter 1 Name] [Block 1 Parameter 1 Type] }
{ [Block 2 Parameter 2 Name] [Block 2 Parameter 2 Type] }
                [...]
}
        [...]
{
[Block n Name] [Block n Quantity] [Block n Count]
{ [Block n Parameter 1 Name] [Block n Parameter 1 Type] }
                [...]
}
}
</pre>
For example
<pre width=80>
{
TestMessage Low NotTrusted Zerocoded
{
TestBlock1 Single
{ Test1 U32 }
}
{
NeighborBlock Multiple 4
{ Test0 U32 }
{ Test1 U32 }
{ Test2 U32 }
}
}
</pre>


==Parameters==
==Parameters==


==Blocks==
==Blocks==

Revision as of 16:24, 28 December 2006

Template:ParentNav

Messages

A message is the basic communications unit for the Second Life world. Messages are used to pass serialized information about almost every part of the system back and forth between two hosts on a network, through connections known as circuits.

There are many hundreds of messages in the Second Life message system. A list of them is available at.

Message Format

Messages are defined in the Message Template. They follow the format:

{
	[Message Name] [Message Frequency] [Message Trust Level] [Message Encoding]
	{
		[Block 1 Name]		[Block 1 Quantity] [Block 1 Count]
		{	[Block 1 Parameter 1 Name]		[Block 1 Parameter 1 Type]	}
		{	[Block 2 Parameter 2 Name]		[Block 2 Parameter 2 Type]	}
                [...]
	}
        [...]
	{
		[Block n Name]		[Block n Quantity] [Block n Count]
		{	[Block n Parameter 1 Name]		[Block n Parameter 1 Type]	}
                [...]
	}
}

For example

{
	TestMessage Low NotTrusted Zerocoded
	{
		TestBlock1		Single
		{	Test1		U32	}
	}
	{
		NeighborBlock		Multiple		4
		{	Test0		U32	}
		{	Test1		U32	}
		{	Test2		U32	}
	}
}

Parameters

Blocks