Created
May 7, 2017 09:39
-
-
Save BalicantaYao/56b816e674780b96be69e4ab14806f69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main (String args[]){ | |
ServerSocket serverSocket = new ServerSocket(199); | |
try{ | |
Socket socket = serverSocket.accept(); | |
} | |
finally{ | |
socket.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment