public boolean sendData(Object data) {
        if(TCPServerManager != null)
        {
            return TCPServerManager.sendData(data);
        }
        
        if(tcpClient != null)
        {
            return tcpClient.sendData(data);
        }
        
        return false;
    }