rename variable

This commit is contained in:
Eric House 2015-08-25 22:19:00 -07:00
parent 9a75ef29f2
commit 83d3163f0e

View file

@ -387,10 +387,10 @@ public class SMSService extends XWService {
{ {
DbgUtils.logf( "SMSService.inviteRemote()" ); DbgUtils.logf( "SMSService.inviteRemote()" );
ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 ); ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 );
DataOutputStream das = new DataOutputStream( bas ); DataOutputStream dos = new DataOutputStream( bas );
try { try {
das.writeUTF( nliData ); dos.writeUTF( nliData );
das.flush(); dos.flush();
send( SMS_CMD.INVITE, bas.toByteArray(), phone ); send( SMS_CMD.INVITE, bas.toByteArray(), phone );
} catch ( java.io.IOException ioe ) { } catch ( java.io.IOException ioe ) {
@ -401,10 +401,10 @@ public class SMSService extends XWService {
private void ackInvite( String phone, int gameID ) private void ackInvite( String phone, int gameID )
{ {
ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 ); ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 );
DataOutputStream das = new DataOutputStream( bas ); DataOutputStream dos = new DataOutputStream( bas );
try { try {
das.writeInt( gameID ); dos.writeInt( gameID );
das.flush(); dos.flush();
send( SMS_CMD.ACK, bas.toByteArray(), phone ); send( SMS_CMD.ACK, bas.toByteArray(), phone );
} catch ( java.io.IOException ioe ) { } catch ( java.io.IOException ioe ) {
@ -416,10 +416,10 @@ public class SMSService extends XWService {
{ {
if ( !s_sentDied.contains(gameID) ) { if ( !s_sentDied.contains(gameID) ) {
ByteArrayOutputStream bas = new ByteArrayOutputStream( 32 ); ByteArrayOutputStream bas = new ByteArrayOutputStream( 32 );
DataOutputStream das = new DataOutputStream( bas ); DataOutputStream dos = new DataOutputStream( bas );
try { try {
das.writeInt( gameID ); dos.writeInt( gameID );
das.flush(); dos.flush();
send( SMS_CMD.DEATH, bas.toByteArray(), phone ); send( SMS_CMD.DEATH, bas.toByteArray(), phone );
s_sentDied.add( gameID ); s_sentDied.add( gameID );
} catch ( java.io.IOException ioe ) { } catch ( java.io.IOException ioe ) {
@ -432,11 +432,11 @@ public class SMSService extends XWService {
{ {
int nSent = -1; int nSent = -1;
ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 ); ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 );
DataOutputStream das = new DataOutputStream( bas ); DataOutputStream dos = new DataOutputStream( bas );
try { try {
das.writeInt( gameID ); dos.writeInt( gameID );
das.write( bytes, 0, bytes.length ); dos.write( bytes, 0, bytes.length );
das.flush(); dos.flush();
if ( send( SMS_CMD.DATA, bas.toByteArray(), phone ) ) { if ( send( SMS_CMD.DATA, bas.toByteArray(), phone ) ) {
nSent = bytes.length; nSent = bytes.length;
} }
@ -450,12 +450,12 @@ public class SMSService extends XWService {
throws java.io.IOException throws java.io.IOException
{ {
ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 ); ByteArrayOutputStream bas = new ByteArrayOutputStream( 128 );
DataOutputStream das = new DataOutputStream( bas ); DataOutputStream dos = new DataOutputStream( bas );
das.writeByte( SMS_PROTO_VERSION ); dos.writeByte( SMS_PROTO_VERSION );
das.writeShort( getNBSPort() ); dos.writeShort( getNBSPort() );
das.writeByte( cmd.ordinal() ); dos.writeByte( cmd.ordinal() );
das.write( bytes, 0, bytes.length ); dos.write( bytes, 0, bytes.length );
das.flush(); dos.flush();
byte[] data = bas.toByteArray(); byte[] data = bas.toByteArray();
byte[][] msgs = breakAndEncode( data ); byte[][] msgs = breakAndEncode( data );