Jump to content

Help with Establishing Presence in the SLGrid


TestChalet
 Share

You are about to reply to a thread that has been inactive for 319 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am working in a Second Life viewer for Android devices and I am following the wiki's documentation about login protocols ( Link to Wiki ). I have the XMLRPC call working but I have a problem understanding the presence code (step 5 of the Authentication Flow), I am also looking at the Presence Code example done in Python ( Link to Wiki ), and here is the snippet of the code that handles the initial send:

data = pack('>BLBL',0x00,0x01,00,0xffff0003) + pack('<L',circuit_code) + uuid.UUID(result["session_id"]).bytes+uuid.UUID(result["agent_id"]).bytes

From what I can understand from the snippet, there is some sort of header information at the start of the send, the 0x01 might be a sequence number to identify the packet to be send. But beside that, I don't understand the '>BLBL' , '<L' and the rest of the hex codes. I also have seen the Second Life's viewer source code, but since it is a huge code to read, I haven't found the class that does all the communications with the server, so far what I have seen in the source code is that LLMessage class is preparing the information before sending it to the server, but not how it is changing the information. So if someone can help me understanding the code snippet, or maybe show me the place where the communication it is done at the viewer's code, or even if there is a documentation at the wiki that I am missing; I will be really thankful.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 319 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...