绑定触摸事件 touchstart touchmove
监听触摸事件event.touches中触摸点的数量
在touchmove事件做判定,如果 event.touches.length==2 则记录此次两点之间的距离:Math.sqrt(Math.pow((x2-x1),2)+Math.pow((y2-y1),2))
在手指移动过程中针对每一次的两点距离进行比较。如果相对上次较大则放大,否则缩小。div的缩放通过transform:scale(x)进行控制
并启动xinetd监听相应的端口.C.然后在客户端测试.
# ftp 10.10.10.20
Connected to 10.10.10.20 (10.10.10.20).
220 (vsFTPd 2.0.5)
Name (10.10.10.20:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>passive
Passive mode off.
ftp>ls
500 Illegal PORT command.
ftp: bind: Address already in use
ftp>passive
Passive mode on.
ftp>ls
227 Entering Passive Mode (192,168,1,8,39,65)
ftp: connect: Connection timed out