public class SocketUtilities extends Object
| Constructor and Description |
|---|
SocketUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
pingServerSocket(InetAddress addr,
int port)
Opens and immediately closes a Socket to the specified host and port.
|
static void |
pingServerSocket(ServerSocket socket)
Opens and immediately closes a Socket to the specified ServerSocket.
|
static void |
pingServerSocket(String hostname,
int port)
Opens and immediately closes a Socket to the specified host and port.
|
public static void pingServerSocket(ServerSocket socket) throws IfsException
Protocol servers can use this method to unblock a thread blocked
on a ServerSocket accept.
socket - the ServerSocketIfsException - (IFS-46115) if the operation failspublic static void pingServerSocket(String hostname, int port) throws IfsException
Protocol servers can use this method to unblock a thread blocked
on a ServerSocket accept.
hostname - the hostport - the portIfsException - (IFS-46115) if the operation failspublic static void pingServerSocket(InetAddress addr, int port) throws IfsException
Protocol servers can use this method to unblock a thread blocked
on a ServerSocket accept.
addr - the hostport - the portIfsException - (IFS-46115) if the operation failsCopyright © 2025. All rights reserved.