"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.stream
Class SocketConnectionStream

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.stream.SocketConnectionStream
All Implemented Interfaces:
IOStream

public class SocketConnectionStream
extends Object
implements IOStream

A socket connection on the cRIO

Author:
mwills

Constructor Summary
SocketConnectionStream(SocketConnection socket)
          Create a new IOStream for a socket connection
SocketConnectionStream(String host, int port)
          Create a new IOStream for a socket connection with the given host and port
 
Method Summary
 void close()
          completely close the stream
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnectionStream

public SocketConnectionStream(String host,
                              int port)
                       throws IOException
Create a new IOStream for a socket connection with the given host and port

Parameters:
host -
port -
Throws:
IOException

SocketConnectionStream

public SocketConnectionStream(SocketConnection socket)
                       throws IOException
Create a new IOStream for a socket connection

Parameters:
socket -
Throws:
IOException
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface IOStream
Returns:
the input stream for this IOStream

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface IOStream
Returns:
the output stream for this IOStream

close

public void close()
Description copied from interface: IOStream
completely close the stream

Specified by:
close in interface IOStream

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"