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

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

public class SocketStream
extends SimpleIOStream

A socket connection on a standard Java VM

Author:
mwills

Constructor Summary
SocketStream(Socket socket)
           
SocketStream(String host, int port)
           
 
Method Summary
 void close()
          completely close the stream
 
Methods inherited from class edu.wpi.first.wpilibj.networktables2.stream.SimpleIOStream
getInputStream, getOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketStream

public SocketStream(String host,
                    int port)
             throws IOException
Throws:
IOException

SocketStream

public SocketStream(Socket socket)
             throws IOException
Throws:
IOException
Method Detail

close

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

Specified by:
close in interface IOStream
Overrides:
close in class SimpleIOStream


Copyright © 2013. All rights reserved.