public class UdpSocketChannel extends Object
Constructor and Description |
---|
UdpSocketChannel(InetAddress inetAddress,
int portNumber,
int timeout,
boolean verbose) |
UdpSocketChannel(String hostIp,
int portNumber,
int timeout,
boolean verbose) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PrintStream |
getOut() |
boolean |
isValid() |
static void |
main(String[] args) |
String |
readString() |
void |
sendString(String string) |
void |
setDebug(int debug) |
void |
setTimeout(int timeout) |
void |
setVerbosity(boolean verbose) |
public UdpSocketChannel(InetAddress inetAddress, int portNumber, int timeout, boolean verbose) throws UnknownHostException, SocketException
UnknownHostException
SocketException
public UdpSocketChannel(String hostIp, int portNumber, int timeout, boolean verbose) throws UnknownHostException, SocketException
UnknownHostException
SocketException
public static void main(String[] args)
public void sendString(String string) throws IOException
IOException
public void close() throws IOException
IOException
public PrintStream getOut()
public String readString() throws SocketException, IOException
SocketException
IOException
public boolean isValid()
public void setTimeout(int timeout) throws SocketException
SocketException
public void setVerbosity(boolean verbose)
public void setDebug(int debug)
Copyright © 2016. All rights reserved.