public class SocketConnection extends NXTConnection
LCP, PACKET, RAW| Constructor and Description |
|---|
SocketConnection(java.net.Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(byte[] buf,
int length) |
int |
read(byte[] buf,
int length,
boolean b) |
int |
write(byte[] buffer,
int numBytes) |
openDataInputStream, openDataOutputStream, openInputStream, openOutputStreampublic void close()
throws java.io.IOException
close in interface Connectionclose in class NXTConnectionjava.io.IOExceptionpublic int read(byte[] buf,
int length)
read in class NXTConnectionpublic int write(byte[] buffer,
int numBytes)
write in class NXTConnectionpublic int read(byte[] buf,
int length,
boolean b)
read in class NXTConnection