"

2013 FRC Java API

"

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

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

public class SocketConnectionServerStreamProvider
extends Object
implements IOStreamProvider

An object that will provide cRIO socket connections when a client connects to the server on the given port

Author:
mwills

Constructor Summary
SocketConnectionServerStreamProvider(int port)
          Create a new Stream provider that wraps a Socket Server on the given port
 
Method Summary
 IOStream accept()
           
 void close()
          Close the source of the IOStreams.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnectionServerStreamProvider

public SocketConnectionServerStreamProvider(int port)
                                     throws IOException
Create a new Stream provider that wraps a Socket Server on the given port

Parameters:
port -
Throws:
IOException
Method Detail

accept

public IOStream accept()
                throws IOException
Specified by:
accept in interface IOStreamProvider
Returns:
a new IOStream normally from a server
Throws:
IOException

close

public void close()
           throws IOException
Description copied from interface: IOStreamProvider
Close the source of the IOStreams. IOStreamProvider.accept() should not be called after this is called

Specified by:
close in interface IOStreamProvider
Throws:
IOException

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"