CVS: rdesktop rdpsnd.c,1.26,1.27

Pierre Ossman <[email protected]> Wed, 06 Dec 2006 05:01:47 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3977

Modified Files:
	rdpsnd.c 
Log Message:
Change servertick to ping according to new information.


Index: rdpsnd.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** rdpsnd.c	6 Dec 2006 12:31:58 -0000	1.26
--- rdpsnd.c	6 Dec 2006 13:01:45 -0000	1.27
***************
*** 31,35 ****
  #define RDPSND_UNKNOWN4		4
  #define RDPSND_COMPLETION	5
! #define RDPSND_SERVERTICK	6
  #define RDPSND_NEGOTIATE	7
  
--- 31,35 ----
  #define RDPSND_UNKNOWN4		4
  #define RDPSND_COMPLETION	5
! #define RDPSND_PING			6
  #define RDPSND_NEGOTIATE	7
  
***************
*** 177,192 ****
  
  static void
! rdpsnd_process_servertick(STREAM in)
  {
! 	uint16 tick1, tick2;
  	STREAM out;
  
! 	/* in_uint8s(in, 4); unknown */
! 	in_uint16_le(in, tick1);
! 	in_uint16_le(in, tick2);
  
! 	out = rdpsnd_init_packet(RDPSND_SERVERTICK | 0x2300, 4);
! 	out_uint16_le(out, tick1);
! 	out_uint16_le(out, tick2);
  	s_mark_end(out);
  	rdpsnd_send(out);
--- 177,190 ----
  
  static void
! rdpsnd_process_ping(STREAM in)
  {
! 	uint16 tick;
  	STREAM out;
  
! 	in_uint16_le(in, tick);
  
! 	out = rdpsnd_init_packet(RDPSND_PING | 0x2300, 4);
! 	out_uint16_le(out, tick);
! 	out_uint16_le(out, 0);
  	s_mark_end(out);
  	rdpsnd_send(out);
***************
*** 266,271 ****
  			rdpsnd_process_negotiate(s);
  			break;
! 		case RDPSND_SERVERTICK:
! 			rdpsnd_process_servertick(s);
  			break;
  		case RDPSND_SET_VOLUME:
--- 264,269 ----
  			rdpsnd_process_negotiate(s);
  			break;
! 		case RDPSND_PING:
! 			rdpsnd_process_ping(s);
  			break;
  		case RDPSND_SET_VOLUME:


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV