古詩詞大全網 - 藝術簽名 - java中經過MD5簽名的數據怎樣用socket發送出去?

java中經過MD5簽名的數據怎樣用socket發送出去?

通過大概以下方法調用

{

String?host;

int?port;

byte[]?data;

Socket?s=new?Socket(host,port);

OutputStream?out?=?s.getOutputStream();

out.write(data);

out.close();

s.close();

}