tcp messages

tcp message

"TO" message

  • tcp message
  • sent from client (owfs, owhttpd, owserver, language binding, owftpd...)
  • sent from ownet clients (owshell, OWNet.pm, ownet.py, ownet.vb, ownet.php,...)
  • sent to owserver
Header
 version 4bytes  network order
"0" from client
 0x10000 + # of tags from owserver
payload   4bytes  network order length in bytes of payload field 
 type  4bytes  network order  type of message: read, write, directory, present?
 controlflags  4bytes  network order various flags 
 size  4bytes  network order  expected size of data read or written
 offset  4bytes  network order location in read or write field that data starts 
Payload  data string. Either just a filename path (for read or directory, or a null terminated path with data to be written afterwards
Tagstrings  series of 16byte tokens for each owserver passed.

"RETURN" message

  • tcp message
  • return from caller, to client eventually
  • includes data if appropriate
  • includes return code
Header
 version 4bytes  network order
"0"
payload   4bytes  network order length in bytes of payload field 
 ret  4bytes  network order return value
 controlflags  4bytes  network order various flags 
 size  4bytes  network order  expected size of data read or written
 offset  4bytes  network order location in read or write field that data starts 
Payload  data string. Either just a filename path (for  directory element, or data read


Previous page: Loop suppresion
Next page: owserver flag word