edu.wpi.first.wpilibj.networktables2.stream
Class SocketServerStreamProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketServerStreamProvider
public SocketServerStreamProvider(int port)
throws IOException
- Throws:
IOException
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.