| |
|
| java.lang.Object net.sourceforge.jtds.jdbc.SharedSocket net.sourceforge.jtds.jdbc.SharedLocalNamedPipe
SharedLocalNamedPipe | public class SharedLocalNamedPipe extends SharedSocket (Code) | | This class implements inter-process communication (IPC) to the database
server using local named pipes (will only work on Windows).
author: Adam Etheredge version: $Id: SharedLocalNamedPipe.java,v 1.12 2007/07/08 21:38:13 bheineman Exp $ |
Method Summary | |
void | close() Close the named pipe and virtual sockets and release any resources. | void | forceClose() Force close the socket causing any pending reads/writes to fail. | boolean | isConnected() Get the connected status of this socket. | byte[] | sendNetPacket(int streamId, byte buffer) Send an network packet. | protected void | setTimeout(int timeout) Set the socket timeout. |
SharedLocalNamedPipe | public SharedLocalNamedPipe(ConnectionJDBC2 connection) throws IOException(Code) | | Creates a new instance of SharedLocalNamedPipe .
Parameters: connection - the connection object throws: IOException - if an I/O error occurs |
close | void close() throws IOException(Code) | | Close the named pipe and virtual sockets and release any resources.
|
forceClose | void forceClose()(Code) | | Force close the socket causing any pending reads/writes to fail.
Used by the login timer to abort a login attempt.
|
isConnected | boolean isConnected()(Code) | | Get the connected status of this socket.
true if the underlying named pipe is connected |
sendNetPacket | byte[] sendNetPacket(int streamId, byte buffer) throws IOException(Code) | | Send an network packet. If output for another virtual socket is in
progress this packet will be sent later.
Parameters: streamId - the originating RequestStream object Parameters: buffer - the data to send exception: java.io.IOException - if an I/O error occurs |
setTimeout | protected void setTimeout(int timeout)(Code) | | Set the socket timeout.
Parameters: timeout - the timeout value in milliseconds |
Fields inherited from net.sourceforge.jtds.jdbc.SharedSocket | final protected int serverType(Code)(Java Doc)
|
|
|
|