Mercurial > hg > Game > Cerium
changeset 592:369537cb45ad draft
send position work!!!(linda)
author | kazz@kazzone.st.ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 01 Nov 2009 06:25:12 +0900 |
parents | 65e52fd2c2e2 |
children | 75c78f8fba24 |
files | Renderer/Test/dynamic_create.cc Renderer/Test/send_linda.cc |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Test/dynamic_create.cc Sun Nov 01 06:14:52 2009 +0900 +++ b/Renderer/Test/dynamic_create.cc Sun Nov 01 06:25:12 2009 +0900 @@ -90,8 +90,7 @@ static int seq = 0; unsigned char *reply; - printf("%d ", node->id); - if (seq == 0) + if (seq == 0) seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); reply = psx_reply(seq);
--- a/Renderer/Test/send_linda.cc Sun Nov 01 06:14:52 2009 +0900 +++ b/Renderer/Test/send_linda.cc Sun Nov 01 06:25:12 2009 +0900 @@ -128,7 +128,7 @@ } while (data == 0); serial = atoi(data + LINDA_HEADER_SIZE); psx_free(data); - printf("serial = %d\n", serial); + return serial; } @@ -201,7 +201,7 @@ send_xml(tspace, xml_id, addr, size); int client_id = htonl(serial); - printf("serial id = %d\n", client_id); + send_xml(tspace, LISTEN_PORT, (unsigned char *)&client_id, sizeof(int)); int pos_id = serial * 10 + 1;