|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.net.SocketLib
public class SocketLib
Library routines to simplify dealing with TCP/IP sockets.
Copyright 2008 Partner Software, Inc.
| Method Summary | |
|---|---|
static java.lang.String |
exchangeText(java.lang.String server,
int port,
java.lang.String text)
Exchange request text with the given TCP ported address. |
static boolean |
isPortAvailable(int port)
Tests to see if a TCP port is open and available - generally a good indication that a service is not currently running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String exchangeText(java.lang.String server,
int port,
java.lang.String text)
throws java.io.IOException
Returns any reply text sent back by the server. This is a single exchange - socket is opened, request text is sent and flushed, reply text is received, socket is closed, reply text is returned.
java.io.IOExceptionpublic static boolean isPortAvailable(int port)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||