2006-05-04, 14:15
im having some trouble with a python based xbmsp server im making. does anyone have an example of a response packet to an xbmsp_packet_filelist_open command and an xbmsp_packet_filelist_read command?
i know this is todo with a python server but i put it under development because the xbmsp server isnt python lol. but i dont mind if this topic is moved:
edit:
would a file packet be like this:
code=byte equal to server code
replyid=int with client id
data="<directoryitem><name>test</name><pathname depth=0></pathname><attrib>directory</attrib><info></info></directoryitem>\n"
length= len(data+replyid+code)
msgtosend= lenght+code+replyid+data
i know this is todo with a python server but i put it under development because the xbmsp server isnt python lol. but i dont mind if this topic is moved:
edit:
would a file packet be like this:
code=byte equal to server code
replyid=int with client id
data="<directoryitem><name>test</name><pathname depth=0></pathname><attrib>directory</attrib><info></info></directoryitem>\n"
length= len(data+replyid+code)
msgtosend= lenght+code+replyid+data