Package jtermios.windows
Class JTermiosImpl
- java.lang.Object
-
- jtermios.windows.JTermiosImpl
-
- All Implemented Interfaces:
JTermios.JTermiosInterface
public class JTermiosImpl extends Object implements JTermios.JTermiosInterface
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jtermios.JTermios.JTermiosInterface
JTermios.JTermiosInterface.NativeSize
-
-
Constructor Summary
Constructors Constructor Description JTermiosImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPoll()poll() on Windows has not been implemented and while implemented on Mac OS X, does not work for devices.intcfgetispeed(Termios termios)intcfgetospeed(Termios termios)voidcfmakeraw(Termios termios)intcfsetispeed(Termios termios, int speed)intcfsetospeed(Termios termios, int speed)intclose(int fd)interrno()intfcntl(int fd, int cmd, int arg)voidFD_CLR(int fd, JTermios.FDSet set)booleanFD_ISSET(int fd, JTermios.FDSet set)voidFD_SET(int fd, JTermios.FDSet set)voidFD_ZERO(JTermios.FDSet set)List<String>getPortList()StringgetPortNamePattern()intioctl(int fd, int cmd, int[] arg)JTermios.FDSetnewFDSet()intopen(String filename, int flags)voidperror(String msg)intpipe(int[] fds)intpoll(int[] fds, int nfds, int timeout)intpoll(Pollfd[] fds, int nfds, int timeout)intread(int fd, byte[] buffer, int length)intselect(int n, JTermios.FDSet readfds, JTermios.FDSet writefds, JTermios.FDSet exceptfds, TimeVal timeout)intsetspeed(int fd, Termios termios, int speed)voidshutDown()inttcdrain(int fd)inttcflush(int fd, int queue)inttcgetattr(int fd, Termios termios)inttcsendbreak(int fd, int duration)inttcsetattr(int fd, int cmd, Termios termios)intupdateFromTermios(jtermios.windows.JTermiosImpl.Port port)intwrite(int fd, byte[] buffer, int length)
-
-
-
Method Detail
-
errno
public int errno()
- Specified by:
errnoin interfaceJTermios.JTermiosInterface
-
cfmakeraw
public void cfmakeraw(Termios termios)
- Specified by:
cfmakerawin interfaceJTermios.JTermiosInterface
-
fcntl
public int fcntl(int fd, int cmd, int arg)- Specified by:
fcntlin interfaceJTermios.JTermiosInterface
-
tcdrain
public int tcdrain(int fd)
- Specified by:
tcdrainin interfaceJTermios.JTermiosInterface
-
cfgetispeed
public int cfgetispeed(Termios termios)
- Specified by:
cfgetispeedin interfaceJTermios.JTermiosInterface
-
cfgetospeed
public int cfgetospeed(Termios termios)
- Specified by:
cfgetospeedin interfaceJTermios.JTermiosInterface
-
cfsetispeed
public int cfsetispeed(Termios termios, int speed)
- Specified by:
cfsetispeedin interfaceJTermios.JTermiosInterface
-
cfsetospeed
public int cfsetospeed(Termios termios, int speed)
- Specified by:
cfsetospeedin interfaceJTermios.JTermiosInterface
-
open
public int open(String filename, int flags)
- Specified by:
openin interfaceJTermios.JTermiosInterface
-
read
public int read(int fd, byte[] buffer, int length)- Specified by:
readin interfaceJTermios.JTermiosInterface
-
write
public int write(int fd, byte[] buffer, int length)- Specified by:
writein interfaceJTermios.JTermiosInterface
-
close
public int close(int fd)
- Specified by:
closein interfaceJTermios.JTermiosInterface
-
tcflush
public int tcflush(int fd, int queue)- Specified by:
tcflushin interfaceJTermios.JTermiosInterface
-
tcgetattr
public int tcgetattr(int fd, Termios termios)- Specified by:
tcgetattrin interfaceJTermios.JTermiosInterface
-
tcsendbreak
public int tcsendbreak(int fd, int duration)- Specified by:
tcsendbreakin interfaceJTermios.JTermiosInterface
-
tcsetattr
public int tcsetattr(int fd, int cmd, Termios termios)- Specified by:
tcsetattrin interfaceJTermios.JTermiosInterface
-
updateFromTermios
public int updateFromTermios(jtermios.windows.JTermiosImpl.Port port) throws jtermios.windows.JTermiosImpl.Fail- Throws:
jtermios.windows.JTermiosImpl.Fail
-
select
public int select(int n, JTermios.FDSet readfds, JTermios.FDSet writefds, JTermios.FDSet exceptfds, TimeVal timeout)- Specified by:
selectin interfaceJTermios.JTermiosInterface
-
poll
public int poll(Pollfd[] fds, int nfds, int timeout)
- Specified by:
pollin interfaceJTermios.JTermiosInterface
-
poll
public int poll(int[] fds, int nfds, int timeout)
-
canPoll
public boolean canPoll()
Description copied from interface:JTermios.JTermiosInterfacepoll() on Windows has not been implemented and while implemented on Mac OS X, does not work for devices.- Specified by:
canPollin interfaceJTermios.JTermiosInterface
-
perror
public void perror(String msg)
- Specified by:
perrorin interfaceJTermios.JTermiosInterface
-
newFDSet
public JTermios.FDSet newFDSet()
- Specified by:
newFDSetin interfaceJTermios.JTermiosInterface
-
FD_CLR
public void FD_CLR(int fd, JTermios.FDSet set)
-
FD_ISSET
public boolean FD_ISSET(int fd, JTermios.FDSet set)
-
FD_SET
public void FD_SET(int fd, JTermios.FDSet set)
-
FD_ZERO
public void FD_ZERO(JTermios.FDSet set)
-
ioctl
public int ioctl(int fd, int cmd, int[] arg)- Specified by:
ioctlin interfaceJTermios.JTermiosInterface
-
getPortNamePattern
public String getPortNamePattern()
- Specified by:
getPortNamePatternin interfaceJTermios.JTermiosInterface
-
getPortList
public List<String> getPortList()
- Specified by:
getPortListin interfaceJTermios.JTermiosInterface
-
shutDown
public void shutDown()
- Specified by:
shutDownin interfaceJTermios.JTermiosInterface
-
setspeed
public int setspeed(int fd, Termios termios, int speed)- Specified by:
setspeedin interfaceJTermios.JTermiosInterface
-
pipe
public int pipe(int[] fds)
- Specified by:
pipein interfaceJTermios.JTermiosInterface
-
-