Syntax for SCO UNIX/OpenServer
#define MHWFLOW | 0x40e |
#define HWFlowControlOff | 0x00 |
#define CTSFlowControlBitOn | 0x01 |
#define RTSFlowControlBitOn | 0x02 |
#define HWFlowControlOn | 0x03 |
ioctl(moxa_fd, MHWFLOW, CTSFlowControlBitOn); ioctl(moxa_fd, MHWFLOW, RTSFlowControlBitOn); ioctl(moxa_fd,MHWFLOW, CTSFlowControlBitOn RTSFlowControlBitOn);
Syntax for UNIX SVR4.2 |
|
#include | <sys/stropts.h> |
#include | <sys/sysmacros.h> |
#define MHWFLOW | 0x40e |
#define HWFlowControlOff | 0x00 |
#define CTSFlowControlBitOn | 0x01 |
#define RTSFlowControlBitOn | 0x02 |
#define HWFlowControlOn | 0x03 |
struct strioctl | ioc; |
int | setting; |
setting = CTSFlowControlbitOn; |
|
ioc.ic_cmd = MHWFLOW; |
|
ioc.ic_timout = 0; ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&setting; ioctl(moxa_fd, I_STR, &ioc);