view Renderer/Test/init_aquarium.cc @ 1029:22d7263cec2d

copy script add.
author tkaito
date Mon, 15 Nov 2010 22:39:25 +0900
parents 58b4fb8ad77c
children
line wrap: on
line source

#include <stdio.h>
#include "lindaapi.h"
#include "aquarium.pb.h"

int main(int argc, char *argv[]) {
	init_linda();
	aqua::Width *width = new aqua::Width();
	width->set_width(0); // 0 ǽ
	int size = width->ByteSize();
	unsigned char *msg = (unsigned char *) malloc(sizeof(char) * size);
	width->SerializeToArray(msg, size);

	int linda = open_linda_java("localhost", 10000);
	psx_out(linda, 1, msg, size);
	psx_sync_n();
	delete width;
	
	return 0;
}