.Close() End With End Sub ' ### サーバ側 ### Private Sub XXX() Dim bytReceiveBuffer(255) As Byte Dim intReceiveLength As Integer Dim objNetworkStream As System.Net.Sockets.NetworkStream Dim objTcpClient As System.Net.Sockets.TcpClient ...
Register as a new user and use Qiita more conveniently You get articles that match your needs You can efficiently read back useful information You can use dark theme What you can do with signing up Sign upLogin Comments No comments Let's comment your feelings that are more than good ...
public void cleanUp() { try { if (inStream != null) inStream.close(); if (socket != null) socket.close(); } catch(IOException e) { System.err.println("Error in cleanup"); e.printStackTrace(); System.exit(-1); } } }
昨日はJavaのライブラリを利用しSocketの受信機能を作りました。(今のところ、指定ポートのソケットでデータを受信したかどうか見てるだけですが)今日は送受信機能を完成させたい所存。Java…