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

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

public class SocketServerStreamProvider
extends Object
implements IOStreamProvider

An object that will provide socket connections when a client connects to the server on the given port (for standard java VM)

Author:
mwills

Constructor Summary
SocketServerStreamProvider(int port)
           
 
Method Summary
 IOStream accept()
           
 void close()
          Close the source of the IOStreams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketServerStreamProvider

public SocketServerStreamProvider(int port)
                           throws IOException
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


Copyright © 2013. All rights reserved.