我已经将一个按钮整合到了phonegap的ui中,我想将udp命令发送到特定的服务器,我该怎么做?
html部分:
function showToast1(sender: AnyObject) {
var byte:[UInt8] = [ 0x3c, 0x00, 0x55]
var data = NSData(bytes: byte, length: 5)
mUdpSocket.sendData(data, toHost: "IP", port:"number", withTimeout: 2, tag: 0)
}
脚本部分:
data temp;
input sumy;
datalines;
36
;
run;
data aaa;
if _n_ = 1 then
set temp;
run;
proc print data = aaa;
run;