Generic file-based IO functions. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <fcntl.h>#include <errno.h>#include <sys/time.h>#include <sys/types.h>#include "hamlib/rig.h"#include "iofunc.h"#include "misc.h"#include "iofunc.h"Functions | |
| int HAMLIB_API | port_open (hamlib_port_t *p) |
| Open a hamlib_port based on its rig port type. | |
| int HAMLIB_API | port_close (hamlib_port_t *p, rig_port_t port_type) |
| Close a hamlib_port. | |
| int HAMLIB_API | write_block (hamlib_port_t *p, const char *txbuffer, size_t count) |
| Write a block of characters to an fd. | |
| int HAMLIB_API | read_block (hamlib_port_t *p, char *rxbuffer, size_t count) |
| Read bytes from an fd. | |
| int HAMLIB_API | read_string (hamlib_port_t *p, char *rxbuffer, size_t rxmax, const char *stopset, int stopset_len) |
| Read a string from an fd. | |
Generic file-based IO functions.
Hamlib documentation for version 1.2.11 -- Sun Jun 20 09:01:38 2010
Project page: http://hamlib.org