* @throws IOException if an I/O related error occurs.
*/
private void setSocket(SocketConnection socket) throws IOException {
m_Socket = socket;
if (m_ModbusTransport == null) {
m_ModbusTransport = new ModbusTCPTransport(m_Socket);
} else {
m_ModbusTransport.setSocket(m_Socket);
}
m_Connected = true;
}//prepareIO