All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intel.bluetooth.obex.OBEXOperationCodes Maven / Gradle / Ivy

/**
 *  BlueCove - Java library for Bluetooth
 *  Copyright (C) 2007 Vlad Skarzhevskyy
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *  @version $Id: OBEXOperationCodes.java 899 2007-08-10 06:30:18Z skarzhevskyy $
 */
package com.intel.bluetooth.obex;

import javax.obex.ResponseCodes;

/**
 * See Bluetooth
 * Specification Documents for details.
 * 
 * 
 * @author vlads
 * 
 */
interface OBEXOperationCodes {

	public static final byte OBEX_VERSION = 0x10;  /* OBEX Protocol Version 1.1 */
	
	public static final short OBEX_DEFAULT_MTU = 0x400;
	
	public static final short OBEX_MINIMUM_MTU = 0xFF;
	
	public static final short OBEX_MTU_HEADER_RESERVE = 3 + 5 + 3;
	
	public static final int OBEX_MAX_PACKET_LEN = 0xFFFF;
	
	public static final char FINAL_BIT = 0x80;
	
	public static final char CONNECT = 0x00 | FINAL_BIT;

	public static final char DISCONNECT = 0x01 | FINAL_BIT;

	public static final char PUT = 0x02;

	public static final char GET = 0x03;

	public static final char SETPATH = 0x05;

	public static final char SESSION = 0x07;

	public static final char ABORT = 0xFF;
	
	public static final int OBEX_RESPONSE_CONTINUE = 0x90;
	
	public static final int OBEX_RESPONSE_SUCCESS = ResponseCodes.OBEX_HTTP_OK;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy