Cam-net-stream

From University of Washington - Ubicomp Research Page
Revision as of 00:36, 17 August 2007 by Karl Koscher (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

cam-net-stream

cam-net-stream is a program that sends a stream of JPEG images captured by cam-server over a TCP/IP connection. cam-net-stream listens for an incoming connection on a port you specify, and begins sending JPEG images once connected. Only one connection may exist at a time.

Before each JPEG image, the image length is sent as a four-byte, little-endian integer. Thus, the data stream looks like:

Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 -- Length + 3 Byte n Byte n + 1 Byte n + 2 Byte n + 3 Byte n + 4 -- Byte n + 3 + Length
Length JPEG Data Length JPEG DATA

usage

    Command line format

      cam-server
      cam-server has no options.