Java ServerSocket getReuseAddress() methodThe getReuseAddress() of java ServerSocket class is used to check whether SO REUSEADDR is enabled or not. SyntaxReturns:A boolean indicating whether or not SO REUSEADDR is enabled. Throws:SocketException - if there is an error in the underlying protocol, such as a TCP error. Since:1.4 Example 1Output: Example 2Output:
Next TopicJava ServerSocket
|