00001 /* 00002 Copyright (c) 2007, Forkbeard team 00003 00004 All rights reserved. 00005 00006 Licensed under BSD license. See License.txt 00007 */ 00008 00042 #ifndef _RFCOMM_H 00043 #define _RFCOMM_H 00044 00045 00046 00047 /* --------------------------------------------------------------------------*/ 00053 void cleanup(void); 00054 /* --------------------------------------------------------------------------*/ 00055 00056 00057 00058 /* --------------------------------------------------------------------------*/ 00065 BOOL CtrlHandler( DWORD fdwCtrlType ); 00066 /* --------------------------------------------------------------------------*/ 00067 00068 00069 00070 /* --------------------------------------------------------------------------*/ 00076 void help (void); 00077 /* --------------------------------------------------------------------------*/ 00078 00079 00080 00081 /* --------------------------------------------------------------------------*/ 00090 int checkIfNoFlagsSet(struct parseoptsOptionStruct myOpts); 00091 /* --------------------------------------------------------------------------*/ 00092 00093 00094 00095 00096 00097 00098 /* --------------------------------------------------------------------------*/ 00108 SOCKET openChannel(char *address,int channel, BOOL silent); 00109 /* --------------------------------------------------------------------------*/ 00110 00111 00112 00113 /* --------------------------------------------------------------------------*/ 00123 int readFromStream(FILE *stream); 00124 /* --------------------------------------------------------------------------*/ 00125 00126 00127 00128 00129 /* --------------------------------------------------------------------------*/ 00138 int checkString(char * text, char * target); 00139 /* --------------------------------------------------------------------------*/ 00140 00141 00142 00143 00144 /* --------------------------------------------------------------------------*/ 00152 int checkEOL(char * text); 00153 /* --------------------------------------------------------------------------*/ 00154 00155 00156 /* --------------------------------------------------------------------------*/ 00167 int readAT(SOCKET sock, char *buffer, int bufferSize); 00168 /* --------------------------------------------------------------------------*/ 00169 00170 00171 00172 00173 /* --------------------------------------------------------------------------*/ 00181 void scan(char *address); 00182 /* --------------------------------------------------------------------------*/ 00183 00184 00185 00186 00187 /* --------------------------------------------------------------------------*/ 00201 BOOL authenticationFunctionRFCOMM( LPVOID* param, BLUETOOTH_DEVICE_INFO* bdi ); 00202 /* --------------------------------------------------------------------------*/ 00203 00204 /* --------------------------------------------------------------------------*/ 00211 printDataInHex(int length); 00212 /* --------------------------------------------------------------------------*/ 00213 00214 #endif