Jump to content

TestChalet

Resident
  • Posts

    5
  • Joined

  • Last visited

Everything posted by TestChalet

  1. Thank you for the reply, it was really helpful, I will start reading the documentation and see how I can implement the rest of the authentication flow in my project.
  2. 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.
  3. 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.
  4. 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.
  5. I am developing an Android Second Life Viewer app and I come across with a question while reading the Current login protocols wiki page ( http://wiki.secondlife.com/wiki/Current_login_protocols ). In the input of the XML-RPC call there is a field called "channel", since I am still developing my app, I am wondering if there is a test channel to see if my XML-RPC call is working? or do I have to get one from Linden Labs before releasing my app?.
×
×
  • Create New...