99import java .io .*;
1010
1111
12-
1312/**
1413 * INet Protocol を処理するためのTCPサブクラス
1514 * @author Fumi.Iseki
1615 */
17-
1816public class INet_TCP extends TCP_Socket
1917{
2018 /**
@@ -39,7 +37,6 @@ public INet_TCP()
3937 }
4038
4139
42-
4340 /**
4441 * コンストラクタ.サーバへの connectも行う.
4542 * @param server_host サーバ名
@@ -52,7 +49,6 @@ public INet_TCP(String server_host, int port)
5249 }
5350
5451
55-
5652 /**
5753 * サーバポートへのコネクトを行う.
5854 * @param server_host サーバ名
@@ -72,7 +68,6 @@ public void connect(String server_host, int port) throws Exception
7268 }
7369
7470
75-
7671 /**
7772 * サーバから "OK" の返答を待つ.
7873 * @return 0:正常終了(OKの返答あり). その他:サーバからのエラーNo.
@@ -102,7 +97,6 @@ public int recvOK() throws Exception
10297 }
10398
10499
105-
106100 /**
107101 * サーバにコマンドを送って,"OK" の返答を待つ.
108102 * @param command サーバへ送るコマンド.
@@ -125,7 +119,6 @@ public int sendCommandRecvOK(String command) throws Exception
125119 }
126120
127121
128-
129122 /**
130123 * サーバからの "OK"の後のメッセージ("END"まで)を受けとる.
131124 * @param mesg サーバへ送るコマンド
@@ -155,7 +148,6 @@ public int recvMesgUntilEND(String[] mesg) throws Exception
155148 return ret_no ;
156149 }
157150
158-
159151
160152 /**
161153 * ソケットをクローズする
@@ -169,7 +161,6 @@ public void close()
169161 }
170162
171163
172-
173164 /**
174165 * 複数のファイルをサーバへ転送し,サーバからの返答を待つ<br>
175166 * 転送状況を示すプログレスバーは使用しない
@@ -183,7 +174,6 @@ public int sendFileRecvOK(File[] files) throws Exception
183174 return sendFileRecvOK (files , false );
184175 }
185176
186-
187177
188178 /**
189179 * 複数のファイルをサーバへ転送し,サーバからの返答を待つ<br>
@@ -224,7 +214,6 @@ public int sendFileRecvOK(File[] files, boolean t) throws Exception
224214 }
225215
226216
227-
228217 /**
229218 * ファイルを1つサーバへ転送し,サーバからの返答を待つ
230219 * 転送状況を示すプログレスバーは使用しない
@@ -239,7 +228,6 @@ public int sendFileRecvOK(File file) throws Exception
239228 }
240229
241230
242-
243231 /**
244232 * ファイルを1つサーバへ転送し,サーバからの返答を待つ
245233 * 転送状況を示すプログレスバーを使用を使用するかどうか指定可能
@@ -281,7 +269,6 @@ public int sendFileRecvOK(File file, ProgBarDialog pbd) throws Exception
281269 }
282270
283271
284-
285272 /**
286273 * ファイルを1つサーバへ転送する.
287274 * 転送状況を示すプログレスバーは使用しない.
@@ -295,7 +282,6 @@ public int sendFile(File file) throws Exception
295282 return this .sendFile (file , (ProgBarDialog )null );
296283 }
297284
298-
299285
300286 /**
301287 * ファイルを1つサーバへ転送する.
@@ -356,7 +342,6 @@ public int sendFile(File file, ProgBarDialog pbd) throws Exception
356342 cnt = false ;
357343 }
358344 }
359-
360345
361346 try {
362347 iFile .close ();
0 commit comments