Update of /cvsroot/playerstage/code/player/server/drivers/shell
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7891/server/drivers/shell
Modified Files:
readlog.cc kartowriter.cc writelog.cc
Log Message:
Changes to message class to remove option to set size explicitly.
This only work by coincidence for structures with one array at the end of them.
Also Message class now uses the auto generated clone and free methods.
Index: writelog.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/shell/writelog.cc,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** writelog.cc 5 Sep 2007 18:57:43 -0000 1.82
--- writelog.cc 21 Sep 2007 03:31:50 -0000 1.83
***************
*** 618,627 ****
this->device_addr))
{
- if(hdr->size != sizeof(player_log_set_write_state_t))
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, sizeof(player_log_set_write_state_t));
- return(-1);
- }
player_log_set_write_state_t* sreq = (player_log_set_write_state_t*)data;
--- 618,621 ----
***************
*** 646,656 ****
PLAYER_LOG_REQ_GET_STATE, this->device_addr))
{
- if(hdr->size != 0)
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, 0);
- return(-1);
- }
-
player_log_get_state_t greq;
--- 640,643 ----
***************
*** 671,680 ****
PLAYER_LOG_REQ_SET_FILENAME,
this->device_addr))
{
- if(hdr->size < sizeof(uint32_t))
- {
- PLAYER_ERROR2("request is wrong length (%d < %d); ignoring",
- hdr->size, sizeof(uint32_t));
- return(-1);
- }
player_log_set_filename_t* freq = (player_log_set_filename_t*)data;
--- 658,661 ----
Index: readlog.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/shell/readlog.cc,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** readlog.cc 5 Sep 2007 18:57:43 -0000 1.52
--- readlog.cc 21 Sep 2007 03:31:50 -0000 1.53
***************
*** 1107,1119 ****
this->localize_addr))
{
- if(hdr->size != 0)
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, 0);
- return(PLAYER_MSGTYPE_RESP_NACK);
- }
-
-
-
this->Publish(this->localize_addr, resp_queue,
PLAYER_MSGTYPE_RESP_ACK,
--- 1107,1110 ----
Index: kartowriter.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/shell/kartowriter.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** kartowriter.cc 23 Aug 2007 19:58:48 -0000 1.5
--- kartowriter.cc 21 Sep 2007 03:31:50 -0000 1.6
***************
*** 222,231 ****
this->device_addr))
{
- if(hdr->size != sizeof(player_log_set_write_state_t))
- {
- PLAYER_ERROR2("request is wrong length (%d != %d);
ignoring",
- hdr->size,
sizeof(player_log_set_write_state_t));
- return(-1);
- }
player_log_set_write_state_t* sreq =
(player_log_set_write_state_t*)data;
--- 222,225 ----
***************
*** 250,260 ****
PLAYER_LOG_REQ_GET_STATE, this->device_addr))
{
- if(hdr->size != 0)
- {
- PLAYER_ERROR2("request is wrong length (%d != %d);
ignoring",
- hdr->size, 0);
- return(-1);
- }
-
player_log_get_state_t greq;
--- 244,247 ----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit