43 int tcp_write(
void* device,
const u8* buf,
size_t count);
45 extern int (*
tcp_write)(
void* device,
const u8* buf,
size_t count);
58 extern int tcp_read(
void* device,
u8* buf,
size_t count,
int milliseconds);
60 extern int (*
tcp_read)(
void* device,
u8* buf,
size_t count,
int milliseconds);
85 const wchar_t *
tcp_info(
void* device);
const wchar_t * tcp_info(void *device)
Returns an error string describing the last error occured.
void tcp_close(void *)
Closes the resource opened by bt_open.
const wchar_t * tcp_error(void *device)
Returns an error string describing the last error occured.
int(* tcp_write)(void *device, const u8 *buf, size_t count)
writes buf[1] till buf[count - 2] to device
void * tcp_open(const char *serial, unsigned timeout)
open a bluetooth device described by device. NULL leads to default action
int(* tcp_read)(void *device, u8 *buf, size_t count, int milliseconds)
writes buf[1] till buf[count - 2] to device