render_net.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 00:29:39 +0300
changeset 43 e5b714190dee
parent 26 6d615203d963
permissions -rw-r--r--
the request/reply code should be complete now, but still needs testing
#include <sys/types.h>

#define RENDER_PORT 6159
#define RENDER_PORT_NAME "6159"

#pragma pack(push)
#pragma pack(1)

struct render_cmd {
    u_int8_t    mode;

    u_int32_t   img_w;
    u_int32_t   img_h;

    double      x1;
    double      y1;
    double      x2;
    double      y2;
};

#pragma pack(pop)