public class SocketLogging extends Object
| Constructor | Description |
|---|---|
SocketLogging(int port) |
builds the server socket
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
logToPrintStream(PrintStream out,
String addOn) |
get the logging data from the socket
print data to the stream
add a new line character if told to
repeat
|
static void |
main(String[] args) |
public SocketLogging(int port)
throws IOException
port - ip port to talk with serverIOException - - any number of socket errorspublic void logToPrintStream(PrintStream out, String addOn) throws IOException
out - - PrintStream object to log toaddOn - - after each logging event add a new line ?IOException - - socket or io errors are possiblepublic void close()
Copyright © 2018. All rights reserved.