Copyright (c) 2011, Jonathan Perichon & Lucas Gerbeaux
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
If you think the Android project roodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package fr.utbm.roodroid;
//www.java2s.com/**
* TCPCommandType
* Enumeration used in the Packet to make the receiver knows
* how he has to process.
*
* @author Jonathan Perichon <jonathan.perichon@gmail.com>
* @author Lucas Gerbeaux <lucas.gerbeaux@gmail.com>
*
*/publicenum TCPCommandType {
SEND_ID,
REQUEST_PASSWORD,
SEND_PASSWORD,
AUTH_FAILED,
AUTH_SUCCESS,
ACK_AUTH,
MSG_SENT,
REQUEST_HAS_CONTACT,
HAS_CONTACT,
HAS_NOT_CONTACT,
MSG_RECEIVED,
MSG_DELIVERED,
SERVER_MAX_MSG_REACHED,
SERVER_EXIT,
CLIENT_EXIT,
CONNECTION_EXIT
}