File tree Expand file tree Collapse file tree 1 file changed +20
-26
lines changed
Expand file tree Collapse file tree 1 file changed +20
-26
lines changed Original file line number Diff line number Diff line change 11
2-
32import jp .jbxl .*;
43
5-
6-
74class UDP_S
85{
9-
10- public static void main (String args [])
11- {
12- UDP udp = new UDP (8000 );
13- String recv = "" ;
14-
15- while (true ){
16- try {
17- recv = udp .recvMesg ();
18- udp .sendMesgln ("OK" );
19- }
20- catch (Exception er ) {
21- //er.printStackTrace();
22- recv = "接続失敗\n " ;
23- System .out .print (recv );
24- break ;
25- }
26-
27- System .out .print (recv );
28- }
29- udp .close ();
30- }
31-
6+ public static void main (String args [])
7+ {
8+ UDP udp = new UDP (8000 );
9+ String recv = "" ;
10+
11+ while (true ){
12+ try {
13+ recv = udp .recvMesg ();
14+ udp .sendMesgln ("OK" );
15+ }
16+ catch (Exception er ) {
17+ //er.printStackTrace();
18+ recv = "接続失敗\n " ;
19+ System .out .print (recv );
20+ break ;
21+ }
22+ System .out .print (recv );
23+ }
24+ udp .close ();
25+ }
3226}
You can’t perform that action at this time.
0 commit comments