OSDN Git Service
(root)
/
stigmata
/
stigmata-plugins.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
メンバをソートした.
[stigmata/stigmata-plugins.git]
/
opcodes
/
src
/
test
/
resources
/
resources
/
MyServer2.java
1
import java.io.*;
2
import java.net.*;
3
4
public class MyServer2{
5
private int port;
6
private ServerSocket server;
7
8
public MyServer2(int defaultPort){
9
try{
10
if(defaultPort > 0){
11
port = defaultPort;
12
server = new ServerSocket(port);
13
}
14
else{
15
server = new ServerSocket();
16
}
17
} catch(IOException e){
18
}
19
}
20
}