通過大概以下方法調用
{String?host;
int?port;
byte[]?data;
Socket?s=new?Socket(host,port);
OutputStream?out?=?s.getOutputStream();
out.write(data);
out.close();
s.close();
}
通過大概以下方法調用
{String?host;
int?port;
byte[]?data;
Socket?s=new?Socket(host,port);
OutputStream?out?=?s.getOutputStream();
out.write(data);
out.close();
s.close();
}