Package com.ericsson.otp.erlang
Class OtpSocketTransport
- java.lang.Object
-
- com.ericsson.otp.erlang.OtpSocketTransport
-
- All Implemented Interfaces:
OtpTransport
public class OtpSocketTransport extends java.lang.Object implements OtpTransport
Default socket-based client transport
-
-
Constructor Summary
Constructors Constructor Description OtpSocketTransport(java.lang.String addr, int port)
OtpSocketTransport(java.net.InetAddress addr, int port)
OtpSocketTransport(java.net.Socket s)
Socket wrapping constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
-
-
-
Constructor Detail
-
OtpSocketTransport
public OtpSocketTransport(java.lang.String addr, int port) throws java.net.UnknownHostException, java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException
- See Also:
Socket(String, int)
-
OtpSocketTransport
public OtpSocketTransport(java.net.InetAddress addr, int port) throws java.net.UnknownHostException, java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException
- See Also:
Socket(InetAddress, int)
-
OtpSocketTransport
public OtpSocketTransport(java.net.Socket s)
Socket wrapping constructor- Parameters:
s
- socket to wrap
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfaceOtpTransport
- Throws:
java.io.IOException
- See Also:
Socket.getInputStream()
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfaceOtpTransport
- Throws:
java.io.IOException
- See Also:
Socket.getOutputStream()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceOtpTransport
- Throws:
java.io.IOException
- See Also:
Socket.close()
-
-