1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-06-20 07:28:43 +00:00

added address options: ioctl-void, ioctl-int, ioctl-intp, ioctl-bin, ioctl-string

added option types: TYPE_INT_INT, TYPE_INT_BIN, TYPE_INT_STRING
added syscall wrapper: Ioctl_int()
added test: IOCTL_VOID
This commit is contained in:
Gerhard Rieger 2008-05-02 18:44:54 +02:00
parent d70b8963aa
commit 2c2508fc62
12 changed files with 246 additions and 6 deletions

View file

@ -285,6 +285,12 @@ $ socat -d -d -d -d - udp-datagram:224.0.0.2:6666,bind=:6666,ip-add-membership=2
// packets leave via wrong interface (set route: ...)
// socket bound to specific address
//=============================================================================
// IOCTL
// open CD drive (given value valid on Linux)
$ socat /dev/cdrom,o-nonblock,ioctl-void=0x5309 -
===============================================================================
// not tested, just ideas, or have problems