"

2013 FRC Java API

"

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

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.stream.SocketStreams

public class SocketStreams
extends Object

Static factory for socket stream factories and providers

Author:
Mitchell

Constructor Summary
SocketStreams()
           
 
Method Summary
static IOStreamFactory newStreamFactory(String host, int port)
          Create a new IOStream factory
static IOStreamProvider newStreamProvider(int port)
          Create a new IOStream provider
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketStreams

public SocketStreams()
Method Detail

newStreamFactory

public static IOStreamFactory newStreamFactory(String host,
                                               int port)
                                        throws IOException
Create a new IOStream factory

Parameters:
host -
port -
Returns:
a IOStreamFactory that will create Socket Connections on the given host and port
Throws:
IOException

newStreamProvider

public static IOStreamProvider newStreamProvider(int port)
                                          throws IOException
Create a new IOStream provider

Parameters:
port -
Returns:
an IOStreamProvider for a socket server on the given port
Throws:
IOException

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"